@sema-agent/server 1.289.0 → 1.290.0
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/dist/fleet/fleet-bus.js
CHANGED
|
@@ -223,6 +223,7 @@ export function fleetBackgroundChildPublisher(bus, log) {
|
|
|
223
223
|
...(m.hostSessionId ? { sessionId: m.hostSessionId } : {}),
|
|
224
224
|
...(parentId !== undefined ? { parentId } : {}),
|
|
225
225
|
...(m.workflowRunId !== undefined ? { workflowRunId: m.workflowRunId } : {}),
|
|
226
|
+
...(m.parentToolCallId !== undefined ? { parentToolCallId: m.parentToolCallId } : {}),
|
|
226
227
|
...(m.spawnedAt !== undefined ? { startedAt: m.spawnedAt, elapsedMs: Date.now() - m.spawnedAt } : {}),
|
|
227
228
|
};
|
|
228
229
|
};
|
|
@@ -250,6 +251,7 @@ export function fleetBackgroundChildPublisher(bus, log) {
|
|
|
250
251
|
sessionScoped: e.sessionScoped,
|
|
251
252
|
spawnedAt: e.startedAt ?? Date.now(),
|
|
252
253
|
...(e.rootSessionId ? { rootSessionId: e.rootSessionId } : {}),
|
|
254
|
+
...(e.parentToolCallId ? { parentToolCallId: e.parentToolCallId } : {}),
|
|
253
255
|
...(e.sessionId ? { aliasUuid: e.sessionId } : {}),
|
|
254
256
|
...(e.workflowRunId ? { workflowRunId: e.workflowRunId } : {}),
|
|
255
257
|
...(e.workflowRunId && !(e.sessionScoped && e.owner)
|
|
@@ -293,6 +295,8 @@ export function fleetBackgroundChildPublisher(bus, log) {
|
|
|
293
295
|
dlog("bg_child_event", { kind: `${e.kind}-after-terminal-ignored`, taskId: e.taskId });
|
|
294
296
|
return;
|
|
295
297
|
}
|
|
298
|
+
if (m.parentToolCallId === undefined && e.parentToolCallId)
|
|
299
|
+
m.parentToolCallId = e.parentToolCallId;
|
|
296
300
|
if (e.kind === "tick") {
|
|
297
301
|
if (!m.suppressedTwin && e.progressTaskId && (!e.progressParentTaskId || e.progressParentTaskId === (m.parentTaskId ?? m.parentSessionLink))) {
|
|
298
302
|
const tail = ` ${e.progressTaskId}`;
|
|
@@ -362,6 +366,7 @@ export function fleetBackgroundChildPublisher(bus, log) {
|
|
|
362
366
|
}
|
|
363
367
|
: {}),
|
|
364
368
|
...(e.transcriptId ? { transcriptId: e.transcriptId } : {}),
|
|
369
|
+
...(e.parentToolCallId ? { parentToolCallId: e.parentToolCallId } : {}),
|
|
365
370
|
...(m.tenantScope ? { ownerScope: m.tenantScope } : {}),
|
|
366
371
|
...(m.hostSessionId ? { ownerSessionId: m.hostSessionId } : {}),
|
|
367
372
|
...(m.rootSessionId ? { rootSessionId: m.rootSessionId } : {}),
|
|
@@ -2,7 +2,7 @@ import type { TaskNotificationPayload, BackgroundChildEvent, RosterEntry, AskReq
|
|
|
2
2
|
type AssertAllKeysHandled<T extends never> = T;
|
|
3
3
|
type NotificationProjected = "task_id" | "task_type" | "toolUseId" | "status" | "summary" | "result" | "output_file" | "usage" | "sessionId" | "seq" | "lines" | "stoppedBy" | "source" | "exitCode" | "partial" | "diagnostics" | "recentSteps" | "editedFiles" | "resumable";
|
|
4
4
|
type _GuardNotification = AssertAllKeysHandled<Exclude<keyof TaskNotificationPayload, NotificationProjected>>;
|
|
5
|
-
type BgNotifProjected = "taskId" | "sessionId" | "seq" | "status" | "summary" | "stoppedBy" | "resumable" | "recentSteps" | "editedFiles" | "usage" | "transcriptId" | "rootSessionId" | "parentTaskId";
|
|
5
|
+
type BgNotifProjected = "taskId" | "sessionId" | "seq" | "status" | "summary" | "stoppedBy" | "resumable" | "recentSteps" | "editedFiles" | "usage" | "transcriptId" | "rootSessionId" | "parentTaskId" | "parentToolCallId";
|
|
6
6
|
type BgNotifExcluded = "kind" | "sessionScoped" | "owner" | "scope" | "description" | "agentType" | "name" | "currentAction" | "currentTool" | "parentSessionId" | "startedAt" | "workflowRunId" | "progressTaskId" | "progressParentTaskId";
|
|
7
7
|
type _GuardBgNotif = AssertAllKeysHandled<Exclude<keyof BackgroundChildEvent, BgNotifProjected | BgNotifExcluded>>;
|
|
8
8
|
type RosterProjected = "name" | "agentId" | "sessionId" | "toolUseId" | "owner" | "scope" | "sessionScoped" | "rootSessionId" | "model" | "createdAt";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.290.0",
|
|
4
4
|
"description": "Sema Server — the server/API implementation layer for Sema, wiring core, registry, model providers, and cloud agent execution. Built on @sema-agent/core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|