@@ -194,17 +194,17 @@ private function registerAbilities(): void {
194194 'output_schema ' => array (
195195 'type ' => 'object ' ,
196196 'properties ' => array (
197- 'success ' => array ( 'type ' => 'boolean ' ),
198- 'name ' => array ( 'type ' => 'string ' ),
199- 'repo ' => array ( 'type ' => 'string ' ),
200- 'is_worktree ' => array ( 'type ' => 'boolean ' ),
201- 'path ' => array ( 'type ' => 'string ' ),
197+ 'success ' => array ( 'type ' => 'boolean ' ),
198+ 'name ' => array ( 'type ' => 'string ' ),
199+ 'repo ' => array ( 'type ' => 'string ' ),
200+ 'is_worktree ' => array ( 'type ' => 'boolean ' ),
201+ 'path ' => array ( 'type ' => 'string ' ),
202202 // Nullable: detached HEAD has no branch; local-only repos
203203 // have no remote; freshly-init'd repos have no commit yet.
204- 'branch ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
205- 'remote ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
206- 'commit ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
207- 'dirty ' => array ( 'type ' => 'integer ' ),
204+ 'branch ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
205+ 'remote ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
206+ 'commit ' => array ( 'type ' => array ( 'string ' , 'null ' ) ),
207+ 'dirty ' => array ( 'type ' => 'integer ' ),
208208 'primary_freshness ' => self ::primaryFreshnessSchema (),
209209 ),
210210 ),
@@ -390,19 +390,19 @@ private function registerAbilities(): void {
390390 'input_schema ' => array (
391391 'type ' => 'object ' ,
392392 'properties ' => array (
393- 'url ' => array (
393+ 'url ' => array (
394394 'type ' => 'string ' ,
395395 'description ' => 'Git repository URL to clone. ' ,
396396 ),
397- 'name ' => array (
397+ 'name ' => array (
398398 'type ' => 'string ' ,
399399 'description ' => 'Directory name override (derived from URL if omitted). ' ,
400400 ),
401- 'full ' => array (
401+ 'full ' => array (
402402 'type ' => 'boolean ' ,
403403 'description ' => 'Disable the default blobless partial clone for remote repositories. ' ,
404404 ),
405- 'auth_token_env ' => array (
405+ 'auth_token_env ' => array (
406406 'type ' => 'string ' ,
407407 'description ' => 'Optional environment variable name containing a bearer token for HTTPS clone authentication. ' ,
408408 ),
@@ -2665,6 +2665,7 @@ public static function removeRepo( array $input ): array|\WP_Error {
26652665 * @return array Result.
26662666 */
26672667 public static function writeFile ( array $ input ): array |\WP_Error {
2668+ $ input = self ::normalize_mounted_workspace_path_input ($ input , array ( 'repo ' ));
26682669 if ( RemoteWorkspaceBackend::should_handle () ) {
26692670 $ result = ( new RemoteWorkspaceBackend () )->write_file (
26702671 $ input ['repo ' ] ?? '' ,
0 commit comments