Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepclause/agentvm
/ functions
Functions
115 in github.com/deepclause/agentvm
⨍
Functions
115
◇
Types & classes
9
↓ 79 callers
Method
exec
* Executes a command in the VM. * @param {string} command * @returns {Promise<{stdout: string, stderr: string, exitCode: number}>}
src/index.js:542
↓ 23 callers
Method
stop
()
src/index.js:172
↓ 22 callers
Method
start
()
src/index.js:49
↓ 13 callers
Function
withTimeout
* SSL/TLS Connection Tests * * Tests HTTPS connections, TLS handshakes, certificate validation, * and various SSL scenarios within the AgentVM. *
test/network/ssl.test.js:13
↓ 13 callers
Function
withTimeout
* Comprehensive HTTP/HTTPS network tests * Tests various HTTP methods, headers, redirects, and downloads
test/network/http.test.js:9
↓ 11 callers
Function
withTimeout
* Large File Download Tests * * Tests the TCP flow control mechanisms and buffer management for larger downloads. * The network stack uses: * - T
test/network/large-download.test.js:15
↓ 10 callers
Method
calculateChecksum
(buf)
src/network.js:465
↓ 10 callers
Function
test
(name, fn)
test/network/stack.test.js:14
↓ 8 callers
Method
sendTCP
(dstIP, dstPort, srcIP, srcPort, seq, ack, flags, payload = Buffer.alloc(0))
src/network.js:626
↓ 7 callers
Method
receive
(frame)
src/network.js:393
↓ 6 callers
Function
createEthFrame
(srcMac, dstMac, etherType, payload)
test/network/stack.test.js:27
↓ 6 callers
Function
withTimeout
(promise, ms = 5000)
test/basic.test.js:3
↓ 6 callers
Method
writeMessage
* Write a network message to the ring buffer * @param {number} type - Message type (NET_MSG_*) * @param {Uint8Array|Buffer} payload - Messag
src/ringbuffer.js:106
↓ 5 callers
Method
hasReceivedFin
* Check if any TCP session has received FIN (for EOF signaling) * @returns {boolean}
src/network.js:345
↓ 5 callers
Method
pollNetResponses
* Poll for network responses from ring buffer (synchronous, no waiting) * Call this during poll_oneoff to check for incoming data
src/network.js:83
↓ 5 callers
Function
withTimeout
* Large File Download Tests (1MB, 10MB, 50MB) * * Uses a local HTTP server to test downloading large files into the VM filesystem. * This tests th
test/network/large-file.test.js:16
↓ 4 callers
Method
hasPendingData
()
src/network.js:337
↓ 4 callers
Method
hasStdinData
* Check if there's stdin data available
src/ringbuffer.js:310
↓ 4 callers
Method
send
(payload, proto)
src/network.js:355
↓ 4 callers
Method
signalWorker
* Signal the worker to wake up and process data * Call this when buffer is full to wake the worker to drain it
src/ringbuffer.js:95
↓ 4 callers
Function
withTimeout
(promise, ms = 5000)
test/mount.test.js:9
↓ 4 callers
Method
writeToStdin
(data)
src/index.js:564
↓ 3 callers
Method
exec
(self, command)
example/vercel_agent.py:41
↓ 3 callers
Method
parseKey
* Parse key-only message (connected, end, close) * @param {Buffer} payload * @returns {string} - key
src/ringbuffer.js:388
↓ 3 callers
Function
profileDownload
(options = {})
test/network/profile-download.js:16
↓ 3 callers
Method
readFromNetwork
(maxLen)
src/network.js:277
↓ 3 callers
Function
readIOVs
(view, iovs_ptr, iovs_len)
src/worker.js:39
↓ 3 callers
Method
sendIP
(payload, protocol, srcIP, dstIP)
src/network.js:495
↓ 3 callers
Function
writeIOVs
(view, iovs_ptr, iovs_len, data)
src/worker.js:50
↓ 3 callers
Method
writeToNetwork
(data)
src/network.js:260
↓ 2 callers
Method
availableSpace
* Get available space in the ring buffer
src/ringbuffer.js:69
↓ 2 callers
Method
closeSocket
* Close the active socket - send FIN to remote, notify main thread
src/network.js:297
↓ 2 callers
Method
handleOutput
(type, dataUint8)
src/index.js:583
↓ 2 callers
Function
printUsage
()
bin/cli.js:6
↓ 2 callers
Function
runTest
()
test/data-integrity.test.js:57
↓ 2 callers
Method
sendDHCPReply
(msgType, xid, chaddr, flags)
src/network.js:744
↓ 2 callers
Method
start
(self)
example/vercel_agent.py:20
↓ 2 callers
Method
waitForIO
* Wait for any I/O (stdin or network) * @param {number} timeout - Timeout in ms (-1 for infinite) * @returns {boolean} - True if I/O is avai
src/ringbuffer.js:436
↓ 2 callers
Method
writeTcpData
* Write TCP data - writes as much as will fit, returns amount written * @param {string} key - TCP session key * @param {Uint8Array|Buffer} d
src/ringbuffer.js:156
↓ 2 callers
Method
writeTcpEnd
* Write TCP end event * @param {string} key - TCP session key
src/ringbuffer.js:200
↓ 1 callers
Method
_handleTcpClose
* Handle TCP close request from worker * @private
src/index.js:431
↓ 1 callers
Method
_handleTcpClosed
* Handle TCP connection closed from main thread * @private
src/network.js:248
↓ 1 callers
Method
_handleTcpConnect
* Handle TCP connect request from worker * @private
src/index.js:251
↓ 1 callers
Method
_handleTcpConnected
* Handle TCP connected event from main thread * @private
src/network.js:161
↓ 1 callers
Method
_handleTcpData
* Handle TCP data from main thread * @private
src/network.js:177
↓ 1 callers
Method
_handleTcpEnd
* Handle TCP end (FIN from remote) from main thread * @private
src/network.js:212
↓ 1 callers
Method
_handleTcpError
* Handle TCP error from main thread * @private
src/network.js:233
↓ 1 callers
Method
_handleTcpSend
* Handle TCP send request from worker * @private
src/index.js:419
↓ 1 callers
Method
_handleUdpResponse
* Handle UDP response from main thread * @private
src/network.js:138
↓ 1 callers
Method
_handleUdpSend
* Handle UDP send request from worker * @private
src/index.js:207
↓ 1 callers
Method
_scheduleRingBufferFlush
* Schedule flushing of pending ring buffer data * @private
src/index.js:450
↓ 1 callers
Function
createIPHeader
(net, srcIP, dstIP, protocol, payloadLen)
test/network/stack.test.js:37
↓ 1 callers
Function
createTestServer
(port)
test/network/large-file.test.js:25
↓ 1 callers
Function
generateTestData
(size)
test/data-integrity.test.js:17
↓ 1 callers
Function
getVM
()
example/openclaw/index.ts:8
↓ 1 callers
Method
handleARP
(packet)
src/network.js:415
↓ 1 callers
Method
handleDHCP
(data)
src/network.js:692
↓ 1 callers
Method
handleICMP
(data, srcIP, dstIP, ipHeader)
src/network.js:479
↓ 1 callers
Method
handleIP
(packet)
src/network.js:441
↓ 1 callers
Method
handleTCP
(segment, srcIP, dstIP, fullIPPacket)
src/network.js:520
↓ 1 callers
Method
handleUDP
(segment, srcIP, dstIP)
src/network.js:662
↓ 1 callers
Method
hasNetworkData
* Check if there's network data available in the ring buffer
src/network.js:75
↓ 1 callers
Method
hasNetworkData
* Check if there's data available in the network ring buffer
src/ringbuffer.js:301
↓ 1 callers
Method
hasSpace
* Check if buffer has enough space (non-blocking) * @param {number} needed - Bytes needed * @returns {boolean}
src/ringbuffer.js:87
↓ 1 callers
Function
main
()
example/agent_bridge.js:5
↓ 1 callers
Function
main
()
test/network/profile-flame.js:34
↓ 1 callers
Function
main
()
test/network/profile-download.js:132
↓ 1 callers
Function
main
()
test/network/profile-instrumented.js:18
↓ 1 callers
Function
main
()
bin/cli.js:100
↓ 1 callers
Function
parseArgs
(args)
bin/cli.js:29
↓ 1 callers
Method
parseTcpData
* Parse TCP data message * @param {Buffer} payload * @returns {Object} - { key, data }
src/ringbuffer.js:376
↓ 1 callers
Method
parseTcpError
* Parse TCP error message * @param {Buffer} payload * @returns {Object} - { key, error }
src/ringbuffer.js:397
↓ 1 callers
Method
parseUdpRecv
* Parse UDP recv message * @param {Buffer} payload * @returns {Object} - { srcIP, srcPort, dstIP, dstPort, data }
src/ringbuffer.js:409
↓ 1 callers
Method
readNetworkMessage
* Read next network message (returns null if none available) * @returns {Object|null} - { type, payload } or null
src/ringbuffer.js:337
↓ 1 callers
Method
readStdin
* Read stdin data (returns null if none available)
src/ringbuffer.js:317
↓ 1 callers
Function
run
()
test-same-vm.js:11
↓ 1 callers
Function
runAgent
()
example/vercel-agent.js:11
↓ 1 callers
Function
runMultipleTests
(count = 5)
test/data-integrity.test.js:152
↓ 1 callers
Function
run_agent
()
example/vercel_agent.py:69
↓ 1 callers
Function
send
()
test/network/profile-flame.js:58
↓ 1 callers
Function
send
()
test/network/profile-instrumented.js:32
↓ 1 callers
Method
sendBroadcast
(payload, proto)
src/network.js:375
↓ 1 callers
Function
sendChunk
()
test/network/profile-download.js:52
↓ 1 callers
Function
sendChunk
()
test/network/large-file.test.js:49
↓ 1 callers
Method
sendDHCPAck
(xid, chaddr, flags)
src/network.js:740
↓ 1 callers
Method
sendDHCPOffer
(xid, chaddr, flags)
src/network.js:736
↓ 1 callers
Method
setupNetwork
* Sets up the network interface. Called automatically during start() if network is enabled. * Can also be called manually to re-initialize the ne
src/index.js:149
↓ 1 callers
Function
start
()
src/worker.js:67
↓ 1 callers
Method
stop
(self)
example/vercel_agent.py:59
↓ 1 callers
Function
test
* Test download performance to verify networking improvements
test-download-perf.js:7
↓ 1 callers
Function
test
()
test-tcp-abort.js:3
↓ 1 callers
Function
test
()
test-exec-local.js:5
↓ 1 callers
Function
test
()
test-nested.js:3
↓ 1 callers
Function
test
()
test-interactive-local.js:5
↓ 1 callers
Function
test
()
test/mount.test.js:16
↓ 1 callers
Function
test
()
test/basic.test.js:10
↓ 1 callers
Function
test
()
test/network/ssl.test.js:20
↓ 1 callers
Function
test
()
test/network/repro_race.js:3
↓ 1 callers
Function
test
()
test/network/large-download.test.js:22
↓ 1 callers
Function
test
()
test/network/http.test.js:19
next →
1–100 of 115, ranked by callers