-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(sponsors): TokenLab Standard sponsor placement, README row and docs #6240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f4c48c4
feat(sponsors): TokenLab Standard sponsor placement, README row and docs
lidge-jun 8adefd4
fix(sponsors): pin sponsor presets in ocx init and ocx provider presets
lidge-jun 21cddd3
fix(sponsors): keep a sponsor-first run in place in the init menu
lidge-jun 2b9295f
docs(sponsors): use TokenLab's final blurb and referral link
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # TokenLab — preset merge and third Standard sponsor | ||
|
|
||
| TokenLab (TOKENLAB AI INC.) signed up as a Standard sponsor on 2026-09-29 (DocuSign envelope sent | ||
| 21:08 KST; USD 1,200 / 3 months, term starts at the npm release that ships the preset). Two units: | ||
|
|
||
| | Doc | Work phase | Outcome | | ||
| |-----|-----------|---------| | ||
| | [010](./010_merge_6221.md) | wp1 | #6221 (fork `hedging8563`, ordinary API-key preset) merged into `dev` on green exact-head CI | | ||
| | [020](./020_sponsor_pr.md) | wp2 | Separate maintainer PR: sponsor field, dashboard sponsor surface, README row #3, docs, assets | | ||
|
|
||
| The sponsor PR stays unmerged for owner review. The Responses-first proposal in TokenLab's asset pack | ||
| (`integration-notes.md`) is out of scope for both units: it changes the upstream protocol and needs | ||
| its own evidence and PR. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # 010 — Merge #6221 (TokenLab API-key preset) | ||
|
|
||
| ## State at plan time | ||
|
|
||
| - Head repo `hedging8563/opencodex`, branch `codex/tokenlab-provider`, draft, `maintainerCanModify`. | ||
| - Branch updated onto `dev` with `gh pr update-branch` → head `6a9e571202`. | ||
| - Fork runs `Cross-platform CI` (36566988054) and `React Doctor` (36566988033) approved by the maintainer. | ||
| - Admission gap recorded in the PR body: routing/resale authorization evidence. The owner's | ||
| sponsorship agreement with the operator (§2.2: sourcing and delivery mode are TokenLab's | ||
| responsibility, not audited or guaranteed by opencodex) is the maintainer decision that closes it; | ||
| no upstream endorsement claim is added. | ||
|
|
||
| ## Steps | ||
|
|
||
| 0. Head moved to `fb565b7c48`: the `dev` union failed `docs-provider-preset-counts` (16 assertions, | ||
| localized 99/82 counts). Recounted the anchored lines; the test passes locally 18/18. | ||
| 1. Wait for every required check on `6a9e571202` to complete successfully. A red, skipped or | ||
| older-head result blocks merge; fix forward only if the failure is in this diff. | ||
| 2. Mark the PR ready (`gh pr ready 6221`). | ||
| 3. Post a maintainer-integration comment: owner instruction, exact head SHA, check list, and the | ||
| admission decision above. | ||
| 4. Squash-merge with the admin bypass (`gh pr merge 6221 --squash --admin`); the squash keeps the | ||
| PR author as commit author. | ||
| 5. Verify `dev` contains the squash commit and `src/providers/registry/entries-extended.ts` carries | ||
| the `tokenlab` entry. | ||
|
|
||
| ## Not in this unit | ||
|
|
||
| Sponsor field, README, logos — see 020. | ||
|
|
||
| ## Outcome (2026-09-29) | ||
|
|
||
| Merged as `f6cddd7d69` at 12:51 UTC from head `fb565b7c48`: 24 checks passed, 7 skipped by path | ||
| conditions (Cross-platform CI 36567400620, React Doctor). CodeRabbit's assertive review found nothing | ||
| actionable. The readiness gate re-drafted the PR on `ready`; the maintainer ticked the last two boxes | ||
| after that review and recorded it on the PR. A full local `bun run test` cannot run from a worktree | ||
| under `~/.codex`: the harness refuses to delete temporary directories inside the real Codex home. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # 020 — TokenLab third Standard sponsor PR | ||
|
|
||
| Branch `codex/tokenlab-sponsor`, started on the #6221 head and rebased onto `dev` after 010 lands. | ||
| Pattern: #3914 (OrcaRouter, mechanism) and #3915 (PackyCode, second sponsor). Assets come from | ||
| TokenLab's corrected pack (`TokenLab-OpenCodex-assets-corrected.zip`), artwork unchanged. | ||
|
|
||
| ## Diff | ||
|
|
||
| - `src/providers/registry/entries-extended.ts` — the `tokenlab` entry gains | ||
| `sponsor: { tier: "standard", url: "https://tokenlab.sh/?utm_source=opencodex&utm_medium=readme" }` | ||
| with a comment naming SPONSORS.md and the signing date. No routing, default or discovery change. | ||
| - `assets/sponsors/tokenlab-light.png`, `assets/sponsors/tokenlab-dark.png` — the pack's 500×125 | ||
| lockups, unchanged (`-light` = for light page backgrounds, as in the pack). Listed in | ||
| `package.json` `files` beside the OrcaRouter/PackyCode logos. | ||
| - `README.md` — third row of the `sponsors:standard` table, in signing order after PackyCode. | ||
| Logo in `<picture>` with a `prefers-color-scheme: dark` source so the dark lockup shows in | ||
| GitHub dark mode; the `<img>` fallback is the light lockup (npm). Text: "Thanks to TokenLab for | ||
| sponsoring this project!", the sponsor's English blurb verbatim, then the picker / | ||
| `ocx provider add tokenlab` line. | ||
| - `readme/README.{ko,ja,zh-CN,zh-TW,ru,fr,tr}.md` — the same row, translated like the existing | ||
| rows, image paths `../assets/...`. Keep the README drift gate green. | ||
| - `gui/public/provider-icons/tokenlab.svg` — the pack's symbol mark; `gui/src/provider-icons.ts` | ||
| maps `tokenlab` to it, sets the display name, and applies dark-mode treatment like other | ||
| monochrome marks. | ||
| - `gui/src/components/provider-workspace/ProviderSponsor.tsx` — replace the hardcoded | ||
| OrcaRouter/PackyCode ternaries with a small brand table so a sponsor is one row; add TokenLab. | ||
| i18n keys `pws.sponsor.tokenlabTitle` / `pws.sponsor.tokenlabDescription` in every | ||
| `gui/src/i18n/*.ts` locale (the closed catalog must stay exhaustive). | ||
| - `docs-site/src/content/docs/guides/providers.md` — sponsor paragraph after PackyCode, and the | ||
| base-URL table row if #6221 has not already added it. Translated locales must not contradict it. | ||
| - Tests — `tests/providers/sponsor-presets.test.ts` stays generic; the GUI sponsor overview test | ||
| covers the TokenLab card. Respect the file-size ratchet: move rather than grow capped files. | ||
|
|
||
| ## Verification | ||
|
|
||
| ## Audit folds (reviewer, NEAR-PASS) | ||
|
|
||
| - `desktop/src-tauri/src/provider_icons.rs`: `("tokenlab", "tokenlab.svg")` in `ALIASES`, the same paint | ||
| arm as `MASKED_PROVIDER_ICONS`, and `svg!("tokenlab.svg")` (`gui/tests/provider-icons-native.test.ts`). | ||
| - `readme/i18n-manifest.json`: refresh all seven `sourceSha256` values to the new LF-normalized README hash | ||
| (`docs-readme-translation-parity.test.ts`). | ||
| - `<picture>` is gate-compatible: only `src=`/`href=` are asset-tracked, so each locale's `<img src>` must be | ||
| `../assets/sponsors/tokenlab-light.png`; include the dark `<source>` too. | ||
| - Icon provenance row in `gui/public/provider-icons/README.md`; `structure/dashboard-and-usage.md` owns the | ||
| `ProviderSponsor` description — update it for the brand table. | ||
| - Docs: extend the existing TokenLab section in `guides/providers.md` with the sponsor link; do not add a | ||
| second paragraph. | ||
| - `SPONSORS.md`: fix the stale "picker follows registry order" and "translated READMEs carry one linking | ||
| line" sentences. | ||
| - Branch: after #6221 squashes, move only the sponsor commits onto `dev` | ||
| (`git rebase --onto origin/dev fb565b7c48`). | ||
|
|
||
| ## Verification (commands) | ||
|
|
||
| Focused: sponsor-presets, provider-registry-parity, tokenlab-provider, README drift/translation | ||
| gates, GUI sponsor tests, `bun run typecheck`, `bun run lint:gui`, `bun run privacy:scan`, | ||
| `bun run structure:check`, `bun run build:gui`. Then `bun run test` or the documented focused | ||
| exception. Screenshot of the dashboard sponsor card and picker uploaded to the `pr-assets` branch | ||
| and linked by SHA in the PR description, never committed to the PR branch. | ||
|
|
||
| ## Out of scope | ||
|
|
||
| Responses-first adapter and the `X-TokenLab-Delivery-Policy` header (pack `integration-notes.md`). |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.