Drop the shared-buffer rendezvous. Each trace now owns its buffer, created before Stalker is armed and announced to Luma via a token-keyed start/ack handshake. The ack carries the drain verdict: Luma remaps the buffer out-of-process while the agent blocks, so an early crash still yields data; on task_for_pid denial (cached per target) the agent drains and pushes chunks itself. Fold all itrace into the tracer instrument. Function-arm traces and thread traces share one Trace registry; thread traces become threadTraces config entries on a find-or-created tracer instance. Core no longer exports itrace, and the drain agent keys its readers by session so concurrent traces stay separate.
22 lines
543 B
TypeScript
22 lines
543 B
TypeScript
import "./console.js";
|
|
import * as env from "./env.js";
|
|
import * as instrument from "./instrument.js";
|
|
import * as memory from "./memory.js";
|
|
import * as modules from "./modules.js";
|
|
import * as pkg from "./pkg.js";
|
|
import * as repl from "./repl.js";
|
|
import * as resolver from "./resolver.js";
|
|
import * as symbolicate from "./symbolicate.js";
|
|
import * as threads from "./threads.js";
|
|
|
|
rpc.exports = {
|
|
...env,
|
|
...instrument,
|
|
...memory,
|
|
...modules,
|
|
...pkg,
|
|
...repl,
|
|
...resolver,
|
|
...symbolicate,
|
|
...threads,
|
|
}; |