Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AI45Lab/Code
/ test_budget_guard.mjs
File
test_budget_guard.mjs
sdk/node/test_budget_guard.mjs:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// Smoke test for the Node SDK BudgetGuard bridge.
2
//
3
// Verifies that a JS guard whose checkBeforeLlm returns
4
// { decision: 'deny', ... } aborts session.send before the LLM is
Callers
nothing calls this directly
Calls
4
create
Method · 0.45
session
Method · 0.45
send
Method · 0.45
log
Method · 0.45
Tested by
no test coverage detected