@@ -10,8 +10,8 @@ import {
1010 type ModelSelection ,
1111 OrchestratorMcpDelegateTaskResult ,
1212 OrchestratorMcpThreadInterruptResult ,
13- OrchestratorMcpThreadReadResult ,
1413 OrchestratorMcpThreadSendResult ,
14+ OrchestratorMcpThreadReadResult ,
1515 ProjectId ,
1616 ProviderDriverKind ,
1717 ProviderInstanceId ,
@@ -80,13 +80,13 @@ const delegatedResult = "Delegated API boundary inspected.";
8080const cancellationPrompt = "Remain active until the parent cancels this delegated task." ;
8181const queuedFollowupPrompt = "Complete the queued follow-up and return the final result." ;
8282const queuedFollowupResult = "Queued delegated follow-up completed." ;
83+ const decodeThreadRead = Schema . decodeUnknownEffect ( OrchestratorMcpThreadReadResult ) ;
8384const longFollowupResult = "Long delegated follow-up line. " . repeat ( 1_500 ) ;
8485
8586const decodeDelegateTaskResult = Schema . decodeUnknownEffect ( OrchestratorMcpDelegateTaskResult ) ;
8687const decodeThreadInterruptResult = Schema . decodeUnknownEffect (
8788 OrchestratorMcpThreadInterruptResult ,
8889) ;
89- const decodeThreadReadResult = Schema . decodeUnknownEffect ( OrchestratorMcpThreadReadResult ) ;
9090const decodeThreadSendResult = Schema . decodeUnknownEffect ( OrchestratorMcpThreadSendResult ) ;
9191
9292const codexSelection = {
@@ -732,7 +732,7 @@ describe("orchestrator MCP toolkit", () => {
732732 } ) . pipe ( Effect . withTracer ( tracer ) ) ;
733733 expect ( read . isError ) . not . toBe ( true ) ;
734734 expect ( transferReads . length ) . toBeGreaterThan ( 0 ) ;
735- const firstPage = yield * decodeThreadReadResult ( read . structuredContent ) ;
735+ const firstPage = yield * decodeThreadRead ( read . structuredContent ) ;
736736 const finalItem = firstPage . items . find ( ( item ) => item . text === result . slice ( 0 , 500 ) ) ;
737737 expect ( finalItem ) . toBeDefined ( ) ;
738738 if ( result . length > 500 ) {
@@ -758,7 +758,7 @@ describe("orchestrator MCP toolkit", () => {
758758 textOffset : nextTextOffset ,
759759 maxCharsPerItem : 50_000 ,
760760 } ) . pipe ( Effect . withTracer ( tracer ) ) ;
761- const nextPage = yield * decodeThreadReadResult ( continuation . structuredContent ) ;
761+ const nextPage = yield * decodeThreadRead ( continuation . structuredContent ) ;
762762 text += nextPage . items [ 0 ] ?. text ?? "" ;
763763 nextTextOffset = nextPage . items [ 0 ] ?. nextTextOffset ?? null ;
764764 }
0 commit comments