Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(client-runtime): reuse projection entity lookups #25374

ClosedNarayan201120(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/25374/headopened View on GitHub

Showing 3 changed files with 144 additions and 0 deletions (loading 2).

x
0 of 3 viewed, 3 left
144 additions and 0 deletionspackages/client-runtime/src/state/orchestrationV2Projection.test.tsModified
View file
@@ -2,12 +2,15 @@
import {
type ThreadPullRequestLink,
type OrchestrationV2DomainEvent,
+ type OrchestrationV2ProviderTurn,
type OrchestrationV2Run,
+ type OrchestrationV2Subagent,
type OrchestrationV2ThreadProjection,
type OrchestrationV2TurnItem,
MessageId,
ProjectId,
ProviderInstanceId,
+ ProviderDriverKind,
NodeId,
ProviderThreadId,
ProviderTurnId,
@@ -62,6 +65,48 @@
exitCode: 0,
};
+​
+function subagentRecord(id: string): OrchestrationV2Subagent {
+ return {
+ id: NodeId.make(id),
+ threadId,
+ runId,
+ parentNodeId: NodeId.make("node-root"),
+ origin: "app_owned",
+ createdBy: "agent",