@@ -1104,7 +1104,7 @@ it.effect("names the worktree itself when the client provides no branch", () =>
11041104 yield * waitUntil ( ( ) => Effect . sync ( ( ) => harness . createWorktree . mock . calls . length === 1 ) ) ;
11051105 assert . match (
11061106 harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName ?? "" ,
1107- / ^ t 3 c o d e \/ [ 0 - 9 a - f ] { 8 } $ / u,
1107+ / ^ t 3 \/ [ 0 - 9 a - f ] { 8 } $ / u,
11081108 ) ;
11091109 yield * waitUntil ( ( ) =>
11101110 threads
@@ -1115,7 +1115,7 @@ it.effect("names the worktree itself when the client provides no branch", () =>
11151115 } ) ,
11161116) ;
11171117
1118- it . effect ( "renames a temporary t3code /<hash> branch off the provisioning critical path" , ( ) =>
1118+ it . effect ( "renames a temporary t3 /<hash> branch off the provisioning critical path" , ( ) =>
11191119 Effect . gen ( function * ( ) {
11201120 const branchNameStarted = yield * Deferred . make < void > ( ) ;
11211121 const allowBranchName = yield * Deferred . make < void > ( ) ;
@@ -1138,19 +1138,19 @@ it.effect("renames a temporary t3code/<hash> branch off the provisioning critica
11381138 command : "command:launch:temp-branch" ,
11391139 thread : "thread:launch:temp-branch" ,
11401140 message : "Build the feature" ,
1141- workspace : { type : "worktree" , baseRef : "main" , branch : "t3code /abcd1234" } ,
1141+ workspace : { type : "worktree" , baseRef : "main" , branch : "t3 /abcd1234" } ,
11421142 } ) ,
11431143 ) ;
11441144 yield * Deferred . await ( branchNameStarted ) ;
1145- assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3code /abcd1234" ) ;
1145+ assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3 /abcd1234" ) ;
11461146 yield * waitUntil ( ( ) =>
11471147 threads
11481148 . getThreadProjection ( launched . threadId )
11491149 . pipe ( Effect . map ( ( projection ) => projection . runs [ 0 ] ?. status === "starting" ) ) ,
11501150 ) ;
11511151 assert . equal (
11521152 ( yield * threads . getThreadProjection ( launched . threadId ) ) . thread . branch ,
1153- "t3code /abcd1234" ,
1153+ "t3 /abcd1234" ,
11541154 ) ;
11551155 yield * Deferred . succeed ( allowBranchName , undefined ) ;
11561156 yield * waitUntil ( ( ) =>
@@ -1160,17 +1160,17 @@ it.effect("renames a temporary t3code/<hash> branch off the provisioning critica
11601160 ) ;
11611161 assert . deepEqual ( harness . renameBranch . mock . calls [ 0 ] ?. [ 0 ] , {
11621162 cwd : "/repo-worktrees/temp" ,
1163- oldBranch : "t3code /abcd1234" ,
1163+ oldBranch : "t3 /abcd1234" ,
11641164 newBranch : "generated-branch" ,
11651165 } ) ;
11661166 } ) . pipe ( Effect . provide ( harness . layer ) ) ;
11671167 } ) ,
11681168) ;
11691169
1170- it . effect ( "provisions under t3code -<hash> when a plain t3code branch blocks t3code /*" , ( ) =>
1170+ it . effect ( "provisions under t3 -<hash> when a plain t3 branch blocks t3 /*" , ( ) =>
11711171 Effect . gen ( function * ( ) {
11721172 const harness = makeHarness ( {
1173- hasCommit : ( input ) => Effect . succeed ( input . refName === "refs/heads/t3code " ) ,
1173+ hasCommit : ( input ) => Effect . succeed ( input . refName === "refs/heads/t3 " ) ,
11741174 createWorktree : ( input ) =>
11751175 Effect . succeed ( {
11761176 worktree : { path : "/repo-worktrees/temp" , refName : input . newRefName , headSha : "abc" } ,
@@ -1184,16 +1184,16 @@ it.effect("provisions under t3code-<hash> when a plain t3code branch blocks t3co
11841184 command : "command:launch:blocked-namespace" ,
11851185 thread : "thread:launch:blocked-namespace" ,
11861186 message : "Build the feature" ,
1187- workspace : { type : "worktree" , baseRef : "main" , branch : "t3code /abcd1234" } ,
1187+ workspace : { type : "worktree" , baseRef : "main" , branch : "t3 /abcd1234" } ,
11881188 } ) ,
11891189 ) ;
11901190 yield * waitUntil ( ( ) =>
11911191 threads
11921192 . getThreadProjection ( launched . threadId )
11931193 . pipe ( Effect . map ( ( projection ) => projection . thread . branch === "generated-branch" ) ) ,
11941194 ) ;
1195- assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3code -abcd1234" ) ;
1196- assert . equal ( harness . renameBranch . mock . calls [ 0 ] ?. [ 0 ] ?. oldBranch , "t3code -abcd1234" ) ;
1195+ assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3 -abcd1234" ) ;
1196+ assert . equal ( harness . renameBranch . mock . calls [ 0 ] ?. [ 0 ] ?. oldBranch , "t3 -abcd1234" ) ;
11971197 } ) . pipe ( Effect . provide ( harness . layer ) ) ;
11981198 } ) ,
11991199) ;
@@ -1235,11 +1235,11 @@ it.effect("keeps the temporary branch when branch generation fails", () =>
12351235 command : "command:launch:branch-fallback" ,
12361236 thread : "thread:launch:branch-fallback" ,
12371237 message : "Build the feature" ,
1238- workspace : { type : "worktree" , baseRef : "main" , branch : "t3code /abcd1234" } ,
1238+ workspace : { type : "worktree" , baseRef : "main" , branch : "t3 /abcd1234" } ,
12391239 } ) ,
12401240 ) ;
12411241 yield * waitUntil ( ( ) => Effect . sync ( ( ) => harness . generateBranchName . mock . calls . length === 1 ) ) ;
1242- assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3code /abcd1234" ) ;
1242+ assert . equal ( harness . createWorktree . mock . calls [ 0 ] ?. [ 0 ] ?. newRefName , "t3 /abcd1234" ) ;
12431243 yield * waitUntil ( ( ) =>
12441244 threads
12451245 . getThreadProjection ( launched . threadId )
@@ -1248,7 +1248,7 @@ it.effect("keeps the temporary branch when branch generation fails", () =>
12481248 assert . equal ( harness . renameBranch . mock . calls . length , 0 ) ;
12491249 assert . equal (
12501250 ( yield * threads . getThreadProjection ( launched . threadId ) ) . thread . branch ,
1251- "t3code /abcd1234" ,
1251+ "t3 /abcd1234" ,
12521252 ) ;
12531253 } ) . pipe ( Effect . provide ( harness . layer ) ) ;
12541254 } ) ,
@@ -1267,8 +1267,8 @@ it.effect("renames a temporary branch on an existing worktree to a generated nam
12671267 message : "Build the feature" ,
12681268 workspace : {
12691269 type : "existing_worktree" ,
1270- worktreePath : "/repo-worktrees/t3code -abcd1234" ,
1271- branch : "t3code /abcd1234" ,
1270+ worktreePath : "/repo-worktrees/t3 -abcd1234" ,
1271+ branch : "t3 /abcd1234" ,
12721272 } ,
12731273 } ) ,
12741274 ) ;
@@ -1278,8 +1278,8 @@ it.effect("renames a temporary branch on an existing worktree to a generated nam
12781278 . pipe ( Effect . map ( ( projection ) => projection . thread . branch === "generated-branch" ) ) ,
12791279 ) ;
12801280 assert . deepEqual ( harness . renameBranch . mock . calls [ 0 ] ?. [ 0 ] , {
1281- cwd : "/repo-worktrees/t3code -abcd1234" ,
1282- oldBranch : "t3code /abcd1234" ,
1281+ cwd : "/repo-worktrees/t3 -abcd1234" ,
1282+ oldBranch : "t3 /abcd1234" ,
12831283 newBranch : "generated-branch" ,
12841284 } ) ;
12851285 } ) . pipe ( Effect . provide ( harness . layer ) ) ;
0 commit comments