Skip to content

Commit 7b098ef

Browse files
author
DavidQ
committed
BUILD_PR_SHARED_EXTRACTION_38_ID_UTILS_BATCH
1 parent 77daf8a commit 7b098ef

8 files changed

Lines changed: 22 additions & 11 deletions

File tree

docs/dev/CODEX_COMMANDS.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
MODEL: GPT-5.3-codex
2-
REASONING: high
3-
COMMAND:
4-
Execute docs/pr/BUILD_PR_SHARED_EXTRACTION_37_STRING_UTILS_TRIM_NORMALIZE_BATCH.md exactly.
5-
Edit only listed files.
6-
Package to <project folder>/tmp/BUILD_PR_SHARED_EXTRACTION_37_STRING_UTILS_TRIM_NORMALIZE_BATCH_delta.zip
1+
Execute exactly. No expansion.

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
centralize string normalization helpers
1+
BUILD_PR_SHARED_EXTRACTION_38_ID_UTILS_BATCH

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Next: id utils batch
1+
Next batch
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
string utils centralized
1+
batch

docs/dev/reports/file_tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs only
1+
docs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
validated
1+
validate
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
Centralize:
3+
- generateId
4+
- isValidId
5+
Shared:
6+
src/shared/utils/idUtils.js
7+
Consumers:
8+
tools/dev/*
9+
tools/shared/*

src/shared/utils/idUtils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function generateId() {
2+
return `id-${Math.random().toString(36).slice(2, 10)}`;
3+
}
4+
5+
export function isValidId(value) {
6+
return typeof value === "string" && value.trim().length > 0;
7+
}

0 commit comments

Comments
 (0)