@probelabs/probe 0.6.0-rc312 → 0.6.0-rc314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/binaries/{probe-v0.6.0-rc312-aarch64-apple-darwin.tar.gz → probe-v0.6.0-rc314-aarch64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc312-aarch64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc314-aarch64-unknown-linux-musl.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc312-x86_64-apple-darwin.tar.gz → probe-v0.6.0-rc314-x86_64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc312-x86_64-pc-windows-msvc.zip → probe-v0.6.0-rc314-x86_64-pc-windows-msvc.zip} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc312-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc314-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/build/agent/ProbeAgent.js +8 -2
- package/build/agent/simpleTelemetry.js +20 -1
- package/build/agent/tasks/TaskManager.js +16 -1
- package/build/agent/tasks/taskTool.js +279 -62
- package/build/delegate.js +4 -1
- package/cjs/agent/ProbeAgent.cjs +327 -97
- package/cjs/agent/simpleTelemetry.cjs +20 -2
- package/cjs/index.cjs +327 -97
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +8 -2
- package/src/agent/simpleTelemetry.js +20 -1
- package/src/agent/tasks/TaskManager.js +16 -1
- package/src/agent/tasks/taskTool.js +279 -62
- package/src/delegate.js +4 -1
|
@@ -244,10 +244,28 @@ var SimpleTelemetry = class {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var SimpleAppTracer = class {
|
|
248
|
-
constructor(telemetry, sessionId = null) {
|
|
247
|
+
var SimpleAppTracer = class _SimpleAppTracer {
|
|
248
|
+
constructor(telemetry, sessionId = null, options = {}) {
|
|
249
249
|
this.telemetry = telemetry;
|
|
250
250
|
this.sessionId = sessionId || this.generateSessionId();
|
|
251
|
+
this.parentSessionId = options.parentSessionId || null;
|
|
252
|
+
this.rootSessionId = options.rootSessionId || this.sessionId;
|
|
253
|
+
this.agentKind = options.agentKind || "main";
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Create a child tracer for a delegated subagent.
|
|
257
|
+
* Inherits the same telemetry backend but scopes events to the child session.
|
|
258
|
+
* @param {string} childSessionId - The subagent's session ID
|
|
259
|
+
* @param {Object} [options] - Additional options
|
|
260
|
+
* @param {string} [options.agentKind='delegate'] - Kind of child agent
|
|
261
|
+
* @returns {SimpleAppTracer} A new tracer scoped to the child session
|
|
262
|
+
*/
|
|
263
|
+
createChildTracer(childSessionId, options = {}) {
|
|
264
|
+
return new _SimpleAppTracer(this.telemetry, childSessionId, {
|
|
265
|
+
parentSessionId: this.sessionId,
|
|
266
|
+
rootSessionId: this.rootSessionId,
|
|
267
|
+
agentKind: options.agentKind || "delegate"
|
|
268
|
+
});
|
|
251
269
|
}
|
|
252
270
|
generateSessionId() {
|
|
253
271
|
return Math.random().toString(36).substring(2, 15);
|