Skip to content

Commit 1741048

Browse files
author
vishal veerareddy
committed
added babel parser for node 25
1 parent 13e2831 commit 1741048

6 files changed

Lines changed: 483 additions & 27 deletions

File tree

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"WebFetch(domain:dev.to)",
7575
"WebFetch(domain:models.dev)",
7676
"Bash(npm view:*)",
77-
"Bash(kill:*)"
77+
"Bash(kill:*)",
78+
"Bash(grep:*)"
7879
],
7980
"deny": [],
8081
"ask": []

package-lock.json

Lines changed: 201 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
},
4646
"dependencies": {
4747
"@azure/openai": "^2.0.0",
48+
"@babel/parser": "^7.29.0",
49+
"@babel/traverse": "^7.29.0",
4850
"better-sqlite3": "^12.6.2",
4951
"compression": "^1.7.4",
5052
"diff": "^5.2.0",

src/config/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ const webSearchMaxRetries = Number.parseInt(process.env.WEB_SEARCH_MAX_RETRIES ?
383383

384384
const policyMaxSteps = Number.parseInt(process.env.POLICY_MAX_STEPS ?? "8", 10);
385385
const policyMaxToolCalls = Number.parseInt(process.env.POLICY_MAX_TOOL_CALLS ?? "12", 10);
386+
const policyToolLoopThreshold = Number.parseInt(process.env.POLICY_TOOL_LOOP_THRESHOLD ?? "10", 10);
386387
const policyDisallowedTools =
387388
process.env.POLICY_DISALLOWED_TOOLS?.split(",")
388389
.map((tool) => tool.trim())
@@ -635,7 +636,7 @@ var config = {
635636
policy: {
636637
maxStepsPerTurn: Number.isNaN(policyMaxSteps) ? 8 : policyMaxSteps,
637638
maxToolCallsPerTurn: Number.isNaN(policyMaxToolCalls) ? 12 : policyMaxToolCalls,
638-
toolLoopThreshold: 1, // Max tool results before force-terminating (set to 1 because GPT-5.2 ignores stop instructions)
639+
toolLoopThreshold: Number.isNaN(policyToolLoopThreshold) ? 10 : policyToolLoopThreshold, // Max tool results before force-terminating
639640
disallowedTools: policyDisallowedTools,
640641
git: {
641642
allowPush: policyGitAllowPush,

0 commit comments

Comments
 (0)