Repository navigation
Task 012: Split util.ts into frontend and backend modules - #22
Merged
Merged
Conversation
5 tasks
Collaborator
Author
/ponytail-reviewDeletion/simplification pass aligned with task scope. No speculative abstractions added.
|
Igloczek
force-pushed
the
task/012-split-util-ts
branch
from
June 30, 2026 11:55
92c3c00 to
83c04eb
Compare
… modules Extract monitor status codes and limits to constants.ts, cross-platform helpers to util-shared.ts, and Logger/jsonata/ANSI colors to util-backend.ts. Keep util.ts as a thin re-export barrel for backend backward compatibility. Update frontend imports to use constants and util-shared only.
Igloczek
force-pushed
the
task/012-split-util-ts
branch
from
June 30, 2026 12:05
83c04eb to
484d955
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Task 012: Split util.ts into frontend and backend modules
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements tasks/012-split-util-ts.md from the ponytail audit backlog.
Goal
Stop shipping backend-only code (Logger, jsonata, ANSI colors) in the frontend bundle.
Scope
src/constants.tsorsrc/util-shared.ts.evaluateJsonQuery/jsonata, crypto helpers) tosrc/util-backend.ts.src/util.tsre-exporting shared pieces for backward compatibility, or update imports across backend/frontend.Acceptance criteria
jsonatais not imported from any file undersrc/components,src/pages, orsrc/mixins.Loggerclass is not imported by frontend Vue files.bun run lintpasses.bun run build:frontendsucceeds.bun run test:backendpasses.tmp/dist-stats.htmlbefore/after).Depends on
Task 003 (
polyfill()removed).Verification
Audit reference
Finding #6 — shared
util.tsmonolith.