Skip to content

Commit 6b9df45

Browse files
committed
Tighten workspace path handle docs
1 parent 2913f3f commit 6b9df45

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

inc/Abilities/WorkspaceAbilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ private function registerAbilities(): void {
7979
'datamachine-code/workspace-path',
8080
array(
8181
'label' => 'Get Workspace Path',
82-
'description' => 'Get the agent workspace directory path, or the path for a workspace repository handle. Optionally create the workspace root directory.',
82+
'description' => 'Get the agent workspace root path, or the path for a workspace repository handle.',
8383
'category' => 'datamachine-code-workspace',
8484
'input_schema' => array(
8585
'type' => 'object',
8686
'properties' => array(
8787
'name' => array(
8888
'type' => 'string',
89-
'description' => 'Optional workspace repository handle. Accepts either <repo> for a primary checkout or <repo>@<branch-slug> for a worktree.',
89+
'description' => 'Optional primary or worktree handle, such as <repo> or <repo>@<branch-slug>.',
9090
),
9191
'ensure' => array(
9292
'type' => 'boolean',

inc/Cli/Commands/WorkspaceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WorkspaceCommand extends BaseCommand {
4646
* ## OPTIONS
4747
*
4848
* [<name>]
49-
* : Optional repository handle. Accepts either <repo> for a primary checkout or <repo>@<branch-slug> for a worktree.
49+
* : Optional primary or worktree handle, such as <repo> or <repo>@<branch-slug>.
5050
*
5151
* [--ensure]
5252
* : Create the directory if it doesn't exist.

inc/Tools/WorkspaceTools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ public function getPathDefinition(): array
996996
'properties' => array(
997997
'name' => array(
998998
'type' => 'string',
999-
'description' => 'Optional workspace repository handle. Accepts either <repo> for a primary checkout or <repo>@<branch-slug> for a worktree.',
999+
'description' => 'Optional primary or worktree handle, such as <repo> or <repo>@<branch-slug>.',
10001000
),
10011001
'ensure' => array(
10021002
'type' => 'boolean',

tests/smoke-workspace-path-cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function warning( string $message ): void
4040
}
4141
}
4242

43-
function is_wp_error( $value ): bool
43+
function is_wp_error( $_value ): bool
4444
{
4545
return false;
4646
}

0 commit comments

Comments
 (0)