ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Aura Kotlin — Этап 2: отладка через Java Debug Wire Protocol (JDWP).
* Минимальный JDWP-клиент поверх net.Socket: handshake, пакетный протокол,
* VirtualMachine/EventRequest/StackFrame/ReferenceType команды, события брейкпоинтов.
* Используется встроенным DAP-адаптером (debugAdapter.ts).
*--------------------------------------------------------------------------------------------*/
import { Socket } from 'node:net';
// ---------- Константы JDWP ----------
export const Handshake = 'JDWP-Handshake';
export const CommandSet = {
VirtualMachine: 1,
ReferenceType: 2,
EventRequest: 15,
StackFrame: 16,
ThreadReference: 11,
} as const;
export const Command = {
// VirtualMachine
IDSizes: 7,
Resume: 9,
Suspend
Exit
ClassesBySignature
Methods
Fields
LineTable
Set
Clear
ClearAllBreakpoints
GetValues
Frames
ThreadName
ThreadSuspend
ThreadResume
EventKind
Breakpoint
Step
ClassPrepare
VMDeath
VMDisconnect
Exception
SuspendPolicy None EventThread All
StepSize Min Line
StepDepth Into Over Out
ModifierKind ThreadOnly Count
Tag
Byte Char Object Float Double
Int Long Short Void Boolean String
typeTag classId methodId index
requestId threadId location JdwpLocation
id location JdwpLocation
methodId name signature
tag value id
slot name signature tag
classId signature
data JdwpReader error Error
offset
buffer Buffer
bufferoffset
value bufferoffset offset value
value bufferoffset offset value
bigint value bufferoffset offset value
length
value buffer offset offset length
offset length
value
tag JdwpValue
tag
TagString
id
tag value id
TagBoolean tag value
TagByte tag value
TagChar tag value String
TagInt TagFloat tag value
TagLong TagDouble tag value
TagObject Tag tag value id
TagVoid tag value
socket Socket
buffer Buffer
nextId
pending
sizes fieldIdSize methodIdSize objectIdSize referenceTypeIdSize frameIdSize
eventHandlers
line
line logHandler handler
line line
host port timeoutMs
resolve reject
socket
timer socket timeoutMs
socketport host
socketHandshake
handshakeBuffer Buffer
handshake BufferHandshake
onData chunk Buffer
handshakeBufferlength handshakelength
handshakeBuffer BufferhandshakeBuffer chunk
handshakeBufferlength handshakelength
handshakeBuffer handshakelengthhandshake
timer
socket
socket onData
socket chunk2 chunk2
timer
socket socket
socket error
socket socket
chunklength handshakelength handshake chunklengthhandshakeBuffer
timer
socket
socket onData
socket error timer error
pending pending pending
pending
eventHandlers
socket
socket
socket socketdestroyed
chunk Buffer
buffer Bufferbuffer chunk
bufferlength
length buffer
bufferlength length
id buffer
flags buffer
commandSet buffer
command buffer
data buffer length
buffer bufferlength
flags
handler eventHandlers commandSet command data
error buffer
pending pendingid
pending
pendingid
error pending
pending data
commandSet command data Buffer
socket
id nextId
header Buffer
header datalength
headerid
header
headercommandSet
headercommand
socketBufferheader data
id
commandSet command data Buffer Buffer JdwpReader
id commandSet command data
resolve reject
pendingid resolve reject
pendingid pendingid
reader CommandSetVirtualMachine CommandIDSizes
sizes fieldIdSize reader methodIdSize reader objectIdSize reader referenceTypeIdSize reader frameIdSize reader
JdwpReader CommandSetVirtualMachine CommandSuspend
JdwpReader CommandSetVirtualMachine CommandResume
exitCode JdwpReader
data Buffer
dataexitCode
CommandSetVirtualMachine CommandExit data
signature JdwpClassInfo
sigBuffer Buffer signaturelength
sigBuffersignaturelength
sigBuffersignature
reader CommandSetVirtualMachine CommandClassesBySignature sigBuffer
count reader
result JdwpClassInfo
i i count i
typeTag reader
classId reader
status reader
result classId signature reader
typeTag status
result
classId JdwpMethod
data Buffer
dataclassId
reader CommandSetReferenceType CommandMethods data
count reader
result JdwpMethod
i i count i
result methodId reader name reader signature reader
result
classId methodId line index
data Buffer
dataclassId
dataclassId
datamethodId
reader CommandSetReferenceType CommandLineTable data
reader
reader
count reader
lines line index
i i count i
lines index reader line reader
lines
classId location methodId index
data Buffer
offset
dataSuspendPolicyEventThread offset offset
dataEventKindBreakpoint offset offset
data offset offset
packet Buffer
packetSuspendPolicyEventThread
packetEventKindBreakpoint
packet
packet
packet
packetclassId
packetlocationmethodId
packetlocationindex
data
reader CommandSetEventRequest CommandSet packet
reader
requestId JdwpReader
data Buffer
dataEventKindBreakpoint
datarequestId
CommandSetEventRequest CommandClear data
data Buffer
dataEventKindBreakpoint
CommandSetEventRequest CommandClearAllBreakpoints data
threadId size StepSizeLine depth StepDepthOver
packet Buffer
off
packetSuspendPolicyEventThread off off
packetEventKindStep off off
packet off off
packetModifierKindCount off off
packet off off
packetModifierKindThreadOnly off off
packetthreadId off off
packetsize off off
packetdepth off off
reader CommandSetEventRequest CommandSet packet
reader
eventKind requestId JdwpReader
data Buffer
dataeventKind
datarequestId
CommandSetEventRequest CommandClear data
threadId startFrame length JdwpFrame
data Buffer
datathreadId
datastartFrame
datalength
reader CommandSetThreadReference CommandFrames data
count reader
frames JdwpFrame
i i count i
frames id reader location typeTag reader classId reader methodId reader index reader
frames
threadId JdwpReader
data Buffer
datathreadId
CommandSetThreadReference CommandThreadSuspend data
threadId JdwpReader
data Buffer
datathreadId
CommandSetThreadReference CommandThreadResume data
commandSet command data Buffer
eventHandlershandler
data Buffer events kind requestId threadId location JdwpLocation
reader data
suspendPolicy reader
suspendPolicy
count reader
events kind requestId threadId location JdwpLocation
i i count i
kind reader
requestId reader
kind EventKindBreakpoint kind EventKindStep kind EventKindException
threadId reader
location typeTag reader classId reader methodId reader index reader
events kind requestId threadId location
events kind requestId
events
stringId
data Buffer
datastringId
reader data
reader