Skip to content

Commit 4b2a810

Browse files
committed
✨ feat: enhance log category parsing for debugging
Improved log category extraction by refining regex patterns.
1 parent 65c93b0 commit 4b2a810

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/bundleprompts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ async function main() {
3232
)
3333
const logCategories = uniq([
3434
"script",
35+
"agent",
3536
...Array.from(
3637
execSync(
3738
`grep -r 'debug("genaiscript:.*")' --include \*.ts --exclude-dir='.genaiscript' .`
3839
)
3940
.toString("utf8")
40-
.matchAll(/debug\("genaiscript:(?<category>[^"]+)"\)/g)
41+
.matchAll(/debug\("(?<category>genaiscript:[^"]+)"\)/g)
4142
)
4243
.sort()
4344
.map((m) => m.groups.category),

0 commit comments

Comments
 (0)