MCPcopy Create free account

hub / github.com/deepclause/agentvm / functions

Functions115 in github.com/deepclause/agentvm

↓ 79 callersMethodexec
* Executes a command in the VM. * @param {string} command * @returns {Promise<{stdout: string, stderr: string, exitCode: number}>}
src/index.js:542
↓ 23 callersMethodstop
()
src/index.js:172
↓ 22 callersMethodstart
()
src/index.js:49
↓ 13 callersFunctionwithTimeout
* 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 callersFunctionwithTimeout
* Comprehensive HTTP/HTTPS network tests * Tests various HTTP methods, headers, redirects, and downloads
test/network/http.test.js:9
↓ 11 callersFunctionwithTimeout
* 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 callersMethodcalculateChecksum
(buf)
src/network.js:465
↓ 10 callersFunctiontest
(name, fn)
test/network/stack.test.js:14
↓ 8 callersMethodsendTCP
(dstIP, dstPort, srcIP, srcPort, seq, ack, flags, payload = Buffer.alloc(0))
src/network.js:626
↓ 7 callersMethodreceive
(frame)
src/network.js:393
↓ 6 callersFunctioncreateEthFrame
(srcMac, dstMac, etherType, payload)
test/network/stack.test.js:27
↓ 6 callersFunctionwithTimeout
(promise, ms = 5000)
test/basic.test.js:3
↓ 6 callersMethodwriteMessage
* 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 callersMethodhasReceivedFin
* Check if any TCP session has received FIN (for EOF signaling) * @returns {boolean}
src/network.js:345
↓ 5 callersMethodpollNetResponses
* 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 callersFunctionwithTimeout
* 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 callersMethodhasPendingData
()
src/network.js:337
↓ 4 callersMethodhasStdinData
* Check if there's stdin data available
src/ringbuffer.js:310
↓ 4 callersMethodsend
(payload, proto)
src/network.js:355
↓ 4 callersMethodsignalWorker
* 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 callersFunctionwithTimeout
(promise, ms = 5000)
test/mount.test.js:9
↓ 4 callersMethodwriteToStdin
(data)
src/index.js:564
↓ 3 callersMethodexec
(self, command)
example/vercel_agent.py:41
↓ 3 callersMethodparseKey
* Parse key-only message (connected, end, close) * @param {Buffer} payload * @returns {string} - key
src/ringbuffer.js:388
↓ 3 callersFunctionprofileDownload
(options = {})
test/network/profile-download.js:16
↓ 3 callersMethodreadFromNetwork
(maxLen)
src/network.js:277
↓ 3 callersFunctionreadIOVs
(view, iovs_ptr, iovs_len)
src/worker.js:39
↓ 3 callersMethodsendIP
(payload, protocol, srcIP, dstIP)
src/network.js:495
↓ 3 callersFunctionwriteIOVs
(view, iovs_ptr, iovs_len, data)
src/worker.js:50
↓ 3 callersMethodwriteToNetwork
(data)
src/network.js:260
↓ 2 callersMethodavailableSpace
* Get available space in the ring buffer
src/ringbuffer.js:69
↓ 2 callersMethodcloseSocket
* Close the active socket - send FIN to remote, notify main thread
src/network.js:297
↓ 2 callersMethodhandleOutput
(type, dataUint8)
src/index.js:583
↓ 2 callersFunctionprintUsage
()
bin/cli.js:6
↓ 2 callersFunctionrunTest
()
test/data-integrity.test.js:57
↓ 2 callersMethodsendDHCPReply
(msgType, xid, chaddr, flags)
src/network.js:744
↓ 2 callersMethodstart
(self)
example/vercel_agent.py:20
↓ 2 callersMethodwaitForIO
* 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 callersMethodwriteTcpData
* 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 callersMethodwriteTcpEnd
* Write TCP end event * @param {string} key - TCP session key
src/ringbuffer.js:200
↓ 1 callersMethod_handleTcpClose
* Handle TCP close request from worker * @private
src/index.js:431
↓ 1 callersMethod_handleTcpClosed
* Handle TCP connection closed from main thread * @private
src/network.js:248
↓ 1 callersMethod_handleTcpConnect
* Handle TCP connect request from worker * @private
src/index.js:251
↓ 1 callersMethod_handleTcpConnected
* Handle TCP connected event from main thread * @private
src/network.js:161
↓ 1 callersMethod_handleTcpData
* Handle TCP data from main thread * @private
src/network.js:177
↓ 1 callersMethod_handleTcpEnd
* Handle TCP end (FIN from remote) from main thread * @private
src/network.js:212
↓ 1 callersMethod_handleTcpError
* Handle TCP error from main thread * @private
src/network.js:233
↓ 1 callersMethod_handleTcpSend
* Handle TCP send request from worker * @private
src/index.js:419
↓ 1 callersMethod_handleUdpResponse
* Handle UDP response from main thread * @private
src/network.js:138
↓ 1 callersMethod_handleUdpSend
* Handle UDP send request from worker * @private
src/index.js:207
↓ 1 callersMethod_scheduleRingBufferFlush
* Schedule flushing of pending ring buffer data * @private
src/index.js:450
↓ 1 callersFunctioncreateIPHeader
(net, srcIP, dstIP, protocol, payloadLen)
test/network/stack.test.js:37
↓ 1 callersFunctioncreateTestServer
(port)
test/network/large-file.test.js:25
↓ 1 callersFunctiongenerateTestData
(size)
test/data-integrity.test.js:17
↓ 1 callersFunctiongetVM
()
example/openclaw/index.ts:8
↓ 1 callersMethodhandleARP
(packet)
src/network.js:415
↓ 1 callersMethodhandleDHCP
(data)
src/network.js:692
↓ 1 callersMethodhandleICMP
(data, srcIP, dstIP, ipHeader)
src/network.js:479
↓ 1 callersMethodhandleIP
(packet)
src/network.js:441
↓ 1 callersMethodhandleTCP
(segment, srcIP, dstIP, fullIPPacket)
src/network.js:520
↓ 1 callersMethodhandleUDP
(segment, srcIP, dstIP)
src/network.js:662
↓ 1 callersMethodhasNetworkData
* Check if there's network data available in the ring buffer
src/network.js:75
↓ 1 callersMethodhasNetworkData
* Check if there's data available in the network ring buffer
src/ringbuffer.js:301
↓ 1 callersMethodhasSpace
* Check if buffer has enough space (non-blocking) * @param {number} needed - Bytes needed * @returns {boolean}
src/ringbuffer.js:87
↓ 1 callersFunctionmain
()
example/agent_bridge.js:5
↓ 1 callersFunctionmain
()
test/network/profile-flame.js:34
↓ 1 callersFunctionmain
()
test/network/profile-download.js:132
↓ 1 callersFunctionmain
()
test/network/profile-instrumented.js:18
↓ 1 callersFunctionmain
()
bin/cli.js:100
↓ 1 callersFunctionparseArgs
(args)
bin/cli.js:29
↓ 1 callersMethodparseTcpData
* Parse TCP data message * @param {Buffer} payload * @returns {Object} - { key, data }
src/ringbuffer.js:376
↓ 1 callersMethodparseTcpError
* Parse TCP error message * @param {Buffer} payload * @returns {Object} - { key, error }
src/ringbuffer.js:397
↓ 1 callersMethodparseUdpRecv
* Parse UDP recv message * @param {Buffer} payload * @returns {Object} - { srcIP, srcPort, dstIP, dstPort, data }
src/ringbuffer.js:409
↓ 1 callersMethodreadNetworkMessage
* Read next network message (returns null if none available) * @returns {Object|null} - { type, payload } or null
src/ringbuffer.js:337
↓ 1 callersMethodreadStdin
* Read stdin data (returns null if none available)
src/ringbuffer.js:317
↓ 1 callersFunctionrun
()
test-same-vm.js:11
↓ 1 callersFunctionrunAgent
()
example/vercel-agent.js:11
↓ 1 callersFunctionrunMultipleTests
(count = 5)
test/data-integrity.test.js:152
↓ 1 callersFunctionrun_agent
()
example/vercel_agent.py:69
↓ 1 callersFunctionsend
()
test/network/profile-flame.js:58
↓ 1 callersFunctionsend
()
test/network/profile-instrumented.js:32
↓ 1 callersMethodsendBroadcast
(payload, proto)
src/network.js:375
↓ 1 callersFunctionsendChunk
()
test/network/profile-download.js:52
↓ 1 callersFunctionsendChunk
()
test/network/large-file.test.js:49
↓ 1 callersMethodsendDHCPAck
(xid, chaddr, flags)
src/network.js:740
↓ 1 callersMethodsendDHCPOffer
(xid, chaddr, flags)
src/network.js:736
↓ 1 callersMethodsetupNetwork
* 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 callersFunctionstart
()
src/worker.js:67
↓ 1 callersMethodstop
(self)
example/vercel_agent.py:59
↓ 1 callersFunctiontest
* Test download performance to verify networking improvements
test-download-perf.js:7
↓ 1 callersFunctiontest
()
test-tcp-abort.js:3
↓ 1 callersFunctiontest
()
test-exec-local.js:5
↓ 1 callersFunctiontest
()
test-nested.js:3
↓ 1 callersFunctiontest
()
test-interactive-local.js:5
↓ 1 callersFunctiontest
()
test/mount.test.js:16
↓ 1 callersFunctiontest
()
test/basic.test.js:10
↓ 1 callersFunctiontest
()
test/network/ssl.test.js:20
↓ 1 callersFunctiontest
()
test/network/repro_race.js:3
↓ 1 callersFunctiontest
()
test/network/large-download.test.js:22
↓ 1 callersFunctiontest
()
test/network/http.test.js:19
next →1–100 of 115, ranked by callers