MCPcopy Index your code
hub / github.com/simstudioai/sim / add

Function add

apps/sim/lib/logs/execution/logger.ts:87–92  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

85 let bytes = 0
86
87 const add = (amount: number) => {
88 bytes += amount
89 if (bytes > maxBytes) {
90 throw new Error('json_size_limit_reached')
91 }
92 }
93
94 const visit = (item: unknown): void => {
95 if (item === undefined || typeof item === 'function' || typeof item === 'symbol') {

Callers 2

visitFunction · 0.70
createToastFnFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected