mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6259] [MERGED] Expose token estimator API to Personal Extensions #7109
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6259
Author: @minikkeuen
Created: 9/16/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:pr/personal-extension-token-api📝 Commits (4)
3b60248feat(personal-extensions): expose token estimator API5d21a63fix(personal-extensions): serialize token estimator helpers2da5f37docs(personal-extensions): document token estimator API95db530Merge remote-tracking branch 'origin/staging' into review/6259-extension-tokens📊 Changes
10 files changed (+175 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/extending/personal-extensions.md(+10 -0)📝
packages/client/src/components/layout/PersonalExtensionInjector.tsx(+4 -1)📝
packages/server/src/assets/personal-extension-runner.mjs(+10 -0)📝
packages/server/src/routes/personal-extensions.routes.ts(+2 -0)📝
packages/server/src/services/extensions/personal-server-extension-runtime.ts(+2 -1)📝
packages/shared/src/types/personal-extension.ts(+6 -0)📝
packages/shared/src/utils/token-estimator.ts(+11 -0)📝
scripts/regressions/extension-ipc.regression.ts(+34 -1)➕
scripts/regressions/extension-token-estimator.regression.ts(+95 -0)📄 Description
Linked issue
Closes #6257
Why this change
What changed
marinara.estimateTextTokens(text)to the Personal Extension API.[Unreleased]changelog.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Translation follow-up: #6258
UI evidence (if applicable)
Not applicable; this change does not modify the UI.
Summary by CodeRabbit
New Features
marinara.estimateTextTokens(text)API.Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.