File tree Expand file tree Collapse file tree
engine/debug/inspectors/shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ MODEL: GPT-5.4-codex
22REASONING: high
33
44COMMAND:
5- Execute docs/pr/BUILD_PR_REPO_STRUCTURE_65_MOVE_MAP_SHARED_TOOLS_BOUNDARY .md exactly .
6- Move only clearly shared utility files from tools to src/shared .
7- Update imports accordingly .
8- Package to:
9- <project folder >/tmp/BUILD_PR_REPO_STRUCTURE_65_MOVE_MAP_SHARED_TOOLS_BOUNDARY_delta .zip
5+ Execute exactly docs/pr/BUILD_PR_REPO_STRUCTURE_66_MOVE_MAP_SANITIZETEXT_TO_SHARED_STRINGUTILS .md.
6+ Modify only the exact target files listed in the PR doc .
7+ Do not expand scope .
8+ Package the delta zip to:
9+ <project folder >/tmp/BUILD_PR_REPO_STRUCTURE_66_MOVE_MAP_SANITIZETEXT_TO_SHARED_STRINGUTILS_delta .zip
Original file line number Diff line number Diff line change 1- Enforce shared vs tools boundary by moving pure utilities to src/ shared
1+ Move sanitizeText into src/ shared/utils/stringUtils.js and update the exact tool consumers in the shared/tools boundary lane.
Original file line number Diff line number Diff line change 1- Next: BUILD_PR_REPO_STRUCTURE_66_MOVE_MAP_GAMES_BOUNDARY
1+ Next: inspect remaining shared/tools boundary candidates and build the next exact slice only if the target files are explicit.
Original file line number Diff line number Diff line change 1- shared/tools boundary enforcement
1+ - continue shared/tools boundary enforcement with one exact reusable string helper
2+ - move canonical sanitizeText ownership into shared string utils
3+ - update only the listed tool consumers; preserve engine-facing behavior
Original file line number Diff line number Diff line change 1- tools → shared moves only
1+ docs/pr/BUILD_PR_REPO_STRUCTURE_66_MOVE_MAP_SANITIZETEXT_TO_SHARED_STRINGUTILS.md
2+ docs/dev/codex_commands.md
3+ docs/dev/commit_comment.txt
4+ docs/dev/next_command.txt
5+ docs/dev/reports/file_tree.txt
6+ docs/dev/reports/change_summary.txt
7+ docs/dev/reports/validation_checklist.txt
8+ src/engine/debug/inspectors/shared/inspectorUtils.js
9+ src/shared/utils/stringUtils.js
10+ tools/dev/commandPacks/groupCommandPack.js
11+ tools/dev/commandPacks/overlayCommandPack.js
12+ tools/dev/commandPacks/inspectorCommandPack.js
13+ tools/dev/presets/debugPresetApplier.js
Original file line number Diff line number Diff line change 1- only pure utilities moved, imports updated
1+ - single PR purpose only
2+ - exact target files only
3+ - no broad repo scan
4+ - no unrelated helper moves
5+ - no behavior change
6+ - imports/exports resolve after the move
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ inspectorUtils.js
66*/
77
88import { asPositiveInteger } from "../../../../shared/utils/numberUtils.js" ;
9+ import { sanitizeText } from "../../../../shared/utils/stringUtils.js" ;
910
10- export function sanitizeText ( value ) {
11- return typeof value === "string" ? value . trim ( ) : "" ;
12- }
11+ export { sanitizeText } ;
1312
1413export function asObject ( value ) {
1514 return value !== null && typeof value === "object" && ! Array . isArray ( value )
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ export function trimSafe(value) {
22 return typeof value === "string" ? value . trim ( ) : "" ;
33}
44
5+ export function sanitizeText ( value ) {
6+ return typeof value === "string" ? value . trim ( ) : "" ;
7+ }
8+
59export function normalizeString ( value ) {
610 return trimSafe ( value ) ;
711}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414import { createResult } from "./commandPackResultUtils.js" ;
1515import { getRuntimeAndRegistry } from "../../../src/shared/utils/runtimeRegistryUtils.js" ;
1616
17- import { sanitizeText } from "../../../src/engine/debug/inspectors/ shared/inspectorUtils .js" ;
17+ import { sanitizeText } from "../../../src/shared/utils/stringUtils .js" ;
1818
1919function buildSnapshot ( panelRegistry ) {
2020 const panels = panelRegistry . getOrderedPanels ( true ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515} from "./packUtils.js" ;
1616import { stringifyValue } from "../../../src/shared/utils/stringifyValueUtils.js" ;
1717
18- import { sanitizeText } from "../../../src/engine/debug/inspectors/ shared/inspectorUtils .js" ;
18+ import { sanitizeText } from "../../../src/shared/utils/stringUtils .js" ;
1919
2020function asPositiveInt ( value , fallback ) {
2121 const normalized = Number . isFinite ( value ) ? Math . floor ( Number ( value ) ) : fallback ;
You can’t perform that action at this time.
0 commit comments