Skip to content

Reframe docs repo for public AI-agent reference clones#11

Merged
next-devin merged 5 commits into
mainfrom
docs/public-clone-polish
Jun 15, 2026
Merged

Reframe docs repo for public AI-agent reference clones#11
next-devin merged 5 commits into
mainfrom
docs/public-clone-polish

Conversation

@next-devin

Copy link
Copy Markdown
Contributor

Summary

  • Reframe README and CONTRIBUTING for the actual public purpose: clone locally so AI agents can reference Next Commerce user docs while building (NEXT team maintains; no external contributions)
  • Add AGENTS.md as the agent entry point (content/docs/ vs developer-docs vs what to ignore)
  • Add LICENSE with local-reference usage terms
  • Add docs/MAINTENANCE.md for internal publishing workflow; remove PUBLICATION_READINESS.md (audit complete)
  • Trim internal Content Factory / next-mind references from content/changelog.README.md
  • Fix Google Pay Primary Domain link to current path
  • Repair broken legacy changelog URLs (docs.Next Commerce.com, double-link artifacts, legacy API paths) across 28+ entries via scripts/fix-changelog-urls.mjs
  • Mark scripts/changelog-migration/ as deprecated
  • Add GitHub Actions CI (npm ci, npm audit --omit=dev, npm run build)

Test plan

  • npm run build passes
  • npm audit --omit=dev clean
  • Review README/AGENTS.md framing matches intended public use
  • Confirm GitHub repo settings: disable Issues/PRs from forks if desired
  • Flip repository visibility to public when ready

Made with Cursor

Clarify that the public repo exists for local agent reference, not outside contributions. Add AGENTS.md and LICENSE, team-only maintenance docs, CI, changelog URL repairs, and remove the internal readiness audit artifact.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nextcommerce-docs eee033c Commit Preview URL

Branch Preview URL
Jun 15 2026, 09:26 AM

Comment thread scripts/fix-changelog-urls.mjs Outdated
}

parsed.pathname = pathname;
return parsed.toString().replace(/\/$/, '') + (parsed.hash || '');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Duplicated hash bug — parsed.toString() already includes the hash, so appending parsed.hash || '' produces URLs with the hash written twice (e.g. .../3ds2-payments#3ds2-merchant-profiles#3ds2-merchant-profiles).

This is the root cause of the broken 3DS link in content/changelog/2023-09-12-admin-api-payments-campaigns-fulfillment.mdx:24. Re-running this script will keep emitting doubled fragments for any URL with a hash.

Suggested fix:

Suggested change
return parsed.toString().replace(/\/$/, '') + (parsed.hash || '');
return parsed.toString().replace(/\/$/, '');

- [Fulfillment Locations](https://docs.Next Commerce.com/start-here/get-started-on-29-next/fulfillment-settings#fulfillment-locations) settings list now shows a `Returns` column to easily see which fulfillment locations are configured to accept returns.
- [[3DS](https://docs.nextcommerce.com/docs/features/payments/3ds2-payments) Merchant Profiles](https://docs.Next Commerce.com/features/payments/3ds2-payments#3ds2-merchant-profiles) now have a `Name` field to use for reference to improve clarity for merchants with multiple 3DS merchant profiles with the same Merchant Name.
- [Fulfillment Locations](https://docs.nextcommerce.com/start-here/get-started-on-29-next/fulfillment-settings#fulfillment-locations) settings list now shows a `Returns` column to easily see which fulfillment locations are configured to accept returns.
- [3DSMerchant Profiles](https://docs.nextcommerce.com/docs/features/payments/3ds2-payments#3ds2-merchant-profiles#3ds2-merchant-profiles) now have a `Name` field to use for reference to improve clarity for merchants with multiple 3DS merchant profiles with the same Merchant Name.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: Two defects produced by the URL-fixing script:

  1. Link label is missing a space: 3DSMerchant should be 3DS Merchant (also visible elsewhere in the same sentence where the surrounding prose says "multiple 3DS merchant profiles").
  2. The URL has the hash fragment duplicated: …#3ds2-merchant-profiles#3ds2-merchant-profiles. Browsers will treat the second #3ds2-merchant-profiles as a literal fragment id and fail to find it.

Both stem from fixDocsUrl in scripts/fix-changelog-urls.mjs:74 appending parsed.hash after parsed.toString() (which already includes the hash). Fix the script and re-run it; this entry will be regenerated correctly.

Suggested change
- [3DSMerchant Profiles](https://docs.nextcommerce.com/docs/features/payments/3ds2-payments#3ds2-merchant-profiles#3ds2-merchant-profiles) now have a `Name` field to use for reference to improve clarity for merchants with multiple 3DS merchant profiles with the same Merchant Name.
- [3DS Merchant Profiles](https://docs.nextcommerce.com/docs/features/payments/3ds2-payments#3ds2-merchant-profiles) now have a `Name` field to use for reference to improve clarity for merchants with multiple 3DS merchant profiles with the same Merchant Name.

## Improvements

- [[3PL Central](https://docs.nextcommerce.com/docs/apps/3pl-central) App](https://docs.Next Commerce.com/apps/3pl-central) now features logs of API requests to assist merchants in troubleshooting order fulfillments when sent to their integrated fulfillment locations.
- [3PL CentralApp](https://docs.nextcommerce.com/docs/apps/3pl-central) now features logs of API requests to assist merchants in troubleshooting order fulfillments when sent to their integrated fulfillment locations.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: Link label has a missing space — 3PL CentralApp should read 3PL Central App. The original (pre-PR) line was [[3PL Central](…) App](…); the fix-up produced 3PL CentralApp because the inner text 3PL Central and the trailing word App were concatenated during the double-link collapse without inserting a separator.

Suggested change
- [3PL CentralApp](https://docs.nextcommerce.com/docs/apps/3pl-central) now features logs of API requests to assist merchants in troubleshooting order fulfillments when sent to their integrated fulfillment locations.
- [3PL Central App](https://docs.nextcommerce.com/docs/apps/3pl-central) now features logs of API requests to assist merchants in troubleshooting order fulfillments when sent to their integrated fulfillment locations.

@kilo-code-bot

kilo-code-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0

The incremental diff (eee033c) fixed the WARNING that the prior review raised on 2024-05-09-admin-api-payments-campaigns-checkout.mdx line 14. No new issues were found on the diff lines themselves.

  • content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx line 14 — Fulfillment Sevice AppFulfillment Service App typo fixed.

The only outstanding defect is the same sentence duplicated in the front-matter summary on line 9 (not in the diff, so surfaced below as an Other Observation rather than as a new inline comment).

Issue Details (click to expand)

No new issues on diff lines.

Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx 9 Front-matter summary still contains the Fulfillment Sevice App typo (same sentence that was just fixed on line 14) AND a missing space after the closing link — reads …/docs/apps/3pl-central)as a new fully integrated Fulfillment Sevice App… (note )as). Outside the incremental diff hunk.
content/changelog/2024-09-11-subscriptions-payments-storefront-fulfillment.mdx 17 Pre-existing typo: **Math Filters ** (extra trailing space) and **allowing** (missing space before word). Carried forward.
scripts/fix-changelog-urls.mjs 132-140 Two pre-replaces in fixAllUrls (/docs/api/admin/reference and https://docs.nextcommerce.com/apps/) are now redundant — normalizeDocsPathname and fixDeveloperUrl cover the same cases. Carried forward.
scripts/fix-changelog-urls.mjs 142 Removal of the Next Commerce|api-docs\.Next|accounts\.Next|developers\.Next host filter means every URL now flows through fixUrl. Functional no-op for non-matching hosts, but worth noting in the script's docstring. Carried forward.
Files Reviewed (1 file in incremental diff)
  • content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx - 0 new issues (line 14 WARNING fixed in this commit)

Fix these issues in Kilo Cloud

Previous Review Summaries (3 snapshots, latest commit 1099ebe)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 1099ebe)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0

Both issues from the previous review have been addressed in the incremental diff (1099ebe and 52e253c):

  • 2024-05-09-admin-api-payments-campaigns-checkout.mdx — missing space after the closing ](…) link fixed on line 14.
  • 2023-08-30-storefront-campaigns-fulfillment-orders.mdxFinish (Suomi)Finnish (Suomi) typo fixed on line 17.

One new issue surfaced on the same line that was just edited.

Issue Details (click to expand)

WARNING

File Line Issue
content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx 14 Fulfillment Sevice AppFulfillment Service App. The previous commit only added the missing space; the Sevice typo flagged in the prior review's other-observations table was not corrected. The same sentence is also duplicated (with the same typo) in the front-matter summary on line 9.
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments (carried forward from prior review):

File Line Issue
content/changelog/2024-09-11-subscriptions-payments-storefront-fulfillment.mdx 17 Pre-existing typo: **Math Filters ** (extra trailing space) and **allowing** (missing space before word). Outside the incremental diff hunk.
scripts/fix-changelog-urls.mjs 132-140 Two pre-replaces in fixAllUrls (/docs/api/admin/reference and https://docs.nextcommerce.com/apps/) are now redundant — normalizeDocsPathname and fixDeveloperUrl cover the same cases. Not a bug, but a maintenance smell.
scripts/fix-changelog-urls.mjs 142 Removal of the Next Commerce|api-docs\.Next|accounts\.Next|developers\.Next host filter means every URL (including unrelated https://github.com/..., etc.) now flows through fixUrl. Functional no-op (it returns the URL unchanged for non-matching hosts), but a minor behavioral change worth noting in the script's docstring.
Files Reviewed (2 files in incremental diff)
  • content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx - 0 new issues (typo fixed)
  • content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx - 1 issue (WARNING)

Fix these issues in Kilo Cloud

Previous review (commit 5714998)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 1

The previous review's 3 issues (duplicated #3ds2-merchant-profiles hash in fixDocsUrl and the two broken-link artifacts it produced) are all fixed in commit 5714998. New issues found in the incremental diff are listed below.

Issue Details (click to expand)

WARNING

File Line Issue
content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx 14 Missing space after closing link: [3PL Central](…)as a new fully integrated — same class of defect just repaired on the 2024-05-22 entry. SeviceService typo on the same line. The new joinLinkLabel helper only handles single-space insertion and cannot detect or repair the missing space, so it must be fixed in source.

SUGGESTION

File Line Issue
content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx 17 Pre-existing typo Finish (Suomi)Finnish (Suomi). The URL on this line was just rewritten, so the entry is otherwise clean. Not produced by the script.
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
content/changelog/2024-09-11-subscriptions-payments-storefront-fulfillment.mdx 17 Pre-existing typo: **Math Filters ** (extra trailing space) and **allowing** (missing space before word). Outside the incremental diff hunk, but visible after URL rewrite.
scripts/fix-changelog-urls.mjs 132-140 Two pre-replaces in fixAllUrls (/docs/api/admin/reference and https://docs.nextcommerce.com/apps/) are now redundant — normalizeDocsPathname and fixDeveloperUrl cover the same cases. Not a bug, but a maintenance smell. Consider deleting the duplicates.
scripts/fix-changelog-urls.mjs 142 Removal of the `Next Commerce
Files Reviewed (11 files in incremental diff)
  • scripts/fix-changelog-urls.mjs - 0 new issues
  • content/changelog/2023-08-17-admin-api-subscriptions-payments-fulfillment.mdx - 0 issues
  • content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx - 1 issue (SUGGESTION)
  • content/changelog/2023-09-12-admin-api-payments-campaigns-fulfillment.mdx - previously fixed
  • content/changelog/2023-09-26-admin-api-campaigns-offers-fulfillment.mdx - 0 issues
  • content/changelog/2023-10-17-payments-checkout-storefront-offers.mdx - 0 issues
  • content/changelog/2023-10-25-payments-subscriptions-checkout-admin-api.mdx - 0 issues
  • content/changelog/2024-03-01-checkout-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2024-03-13-support-subscriptions-payments-checkout.mdx - 0 issues
  • content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx - 1 issue (WARNING)
  • content/changelog/2024-05-22-settings-storefront-fulfillment-orders.mdx - previously fixed

Fix these issues in Kilo Cloud

Previous review (commit 15113fe)

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 2
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

CRITICAL

File Line Issue
scripts/fix-changelog-urls.mjs 74 fixDocsUrl appends parsed.hash after parsed.toString(), doubling the hash fragment on every URL with one (root cause of the broken 3DS link in the changelog)
content/changelog/2023-09-12-admin-api-payments-campaigns-fulfillment.mdx 24 Missing space in label (3DSMerchant) and duplicated #3ds2-merchant-profiles hash in URL — both produced by the script bug above

WARNING

File Line Issue
content/changelog/2024-05-22-settings-storefront-fulfillment-orders.mdx 18 Missing space in label: 3PL CentralApp should be 3PL Central App (collapse of original [[3PL Central](…) App](…))
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx Still contains get-started-on-29-next legacy URL; the script's fixDocsUrl only rewrites that prefix, but this file was not transformed (likely the host was already lowercase) — worth verifying the build's validate-links step catches it
content/changelog/2023-10-17-payments-checkout-storefront-offers.mdx Same: contains get-started-on-29-next legacy path that the script did not rewrite
content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx Same: contains get-started-on-29-next legacy path that the script did not rewrite
content/changelog/2024-09-11-subscriptions-payments-storefront-fulfillment.mdx 17 Pre-existing typo: **Math Filters ** (extra trailing space) and **allowing** (missing space before the word) — outside the diff hunk, but visible after URL rewrite
scripts/fix-changelog-urls.mjs 91-92 fixDoubleLinks for the developer-host pattern drops the inner URL and keeps the outer (using fixDeveloperUrl(outer)). If the inner URL was the good one and the outer was the broken one, the script still rewrites the outer — but on the docs-host path, fixNestedDoubleLinks only matches when the inner is already on docs.nextcommerce.com (lowercase) and the outer is docs.Next Commerce.com. After the first pass, the outer is fixed, so subsequent passes won't re-match. This is fine, but the layered regexes are fragile and fixAllUrls runs a second replace for the same admin-reference path. Consider consolidating into a single AST-like pass.
Files Reviewed (39 files)
  • .github/workflows/ci.yml - 0 issues
  • AGENTS.md - 0 issues
  • CONTRIBUTING.md - 0 issues
  • LICENSE - 0 issues
  • PUBLICATION_READINESS.md (deleted) - 0 issues
  • README.md - 0 issues
  • SECURITY.md - 0 issues
  • content/changelog.README.md - 0 issues
  • content/changelog/2020-06-29-admin-api-subscriptions-payments-orders.mdx - 0 issues
  • content/changelog/2020-12-28-admin-api-payments-checkout-orders.mdx - 0 issues
  • content/changelog/2022-08-22-reports-payments-storefront-admin-api.mdx - 0 issues
  • content/changelog/2023-02-28-offers-payments-checkout-storefront.mdx - 0 issues
  • content/changelog/2023-05-11-subscriptions-payments-storefront-admin-api.mdx - 0 issues
  • content/changelog/2023-05-23-admin-api-subscriptions-payments-fulfillment.mdx - 0 issues
  • content/changelog/2023-07-05-checkout-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2023-08-03-payments-webhooks-fulfillment-orders.mdx - 0 issues
  • content/changelog/2023-08-17-admin-api-subscriptions-payments-fulfillment.mdx - 0 issues
  • content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx - 0 issues
  • content/changelog/2023-09-12-admin-api-payments-campaigns-fulfillment.mdx - 1 issue (CRITICAL)
  • content/changelog/2023-09-26-admin-api-campaigns-offers-fulfillment.mdx - 0 issues
  • content/changelog/2023-10-17-payments-checkout-storefront-offers.mdx - 0 issues
  • content/changelog/2023-10-25-payments-subscriptions-checkout-admin-api.mdx - 0 issues
  • content/changelog/2023-12-15-admin-api-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2024-02-01-admin-api-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2024-02-15-admin-api-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2024-03-01-checkout-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2024-03-13-support-subscriptions-payments-checkout.mdx - 0 issues
  • content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx - 0 issues
  • content/changelog/2024-05-22-settings-storefront-fulfillment-orders.mdx - 1 issue (WARNING)
  • content/changelog/2024-06-05-themes-storefront-offers-fulfillment.mdx - 0 issues
  • content/changelog/2024-09-11-subscriptions-payments-storefront-fulfillment.mdx - 0 issues
  • content/changelog/2024-09-25-subscriptions-payments-checkout-storefront.mdx - 0 issues
  • content/changelog/2024-12-04-offers-subscriptions-payments-checkout.mdx - 0 issues
  • content/changelog/2024-12-18-admin-api-subscriptions-payments-campaigns.mdx - 0 issues
  • content/changelog/2025-01-08-offers-payments-checkout-storefront.mdx - 0 issues
  • content/changelog/2025-02-19-checkout-subscriptions-payments-storefront.mdx - 0 issues
  • content/changelog/2025-08-20-admin-api-subscriptions-payments-checkout.mdx - 0 issues
  • content/docs/features/payments/google-pay.mdx - 0 issues
  • docs/MAINTENANCE.md - 0 issues
  • scripts/changelog-migration/README.md - 0 issues
  • scripts/fix-changelog-urls.mjs - 1 issue (CRITICAL)

Fix these issues in Kilo Cloud


Reviewed by minimax-m3 · 189,124 tokens

Remove duplicated hash fragments, preserve spaces when collapsing nested double-links, and normalize docs paths missing the /docs/ prefix.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx Outdated
Comment thread content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx Outdated
next-devin and others added 2 commits June 15, 2026 16:17
…orders.mdx

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
…kout.mdx

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
Comment thread content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx Outdated
…kout.mdx

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
@next-devin next-devin merged commit 2f8e9e9 into main Jun 15, 2026
4 checks passed
@next-devin next-devin deleted the docs/public-clone-polish branch June 15, 2026 09:33
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.

1 participant