Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): link pull requests agents create from the shell #24813

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/24813/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 6 changed files with 211 additions and 3 deletions (loading 5).

x
0 of 6 viewed, 6 left
211 additions and 3 deletionsapps/server/src/orchestration-v2/PullRequestSyncReactor.test.tsModified
View file
@@ -332,17 +332,22 @@
​
-function commandRan(threadId: ThreadId, input: string): OrchestrationV2DomainEvent {
+function commandRan(
+ threadId: ThreadId,
+ input: string,
+ output?: string,
+ name = "command",
+): OrchestrationV2DomainEvent {
const runId = RunId.make(`run:${threadId}:1`);
const at = DateTime.makeUnsafe(NOW);
return {
type: "turn-item.updated",
- id: EventId.make(`event:${threadId}:command`),
+ id: EventId.make(`event:${threadId}:${name}`),
threadId,
runId,
occurredAt: at,
payload: {
- id: TurnItemId.make(`item:${threadId}:command`),
+ id: TurnItemId.make(`item:${threadId}:${name}`),
threadId,
runId,
nodeId: null,
@@ -358,6 +363,7 @@
updatedAt: at,
type: "command_execution",