Skip to content

Commit 1885ebc

Browse files
authored
fix(schema): Add missing titles for enum variants in schema (#384)
1 parent 65fc2d3 commit 1885ebc

File tree

5 files changed

+457
-117
lines changed

5 files changed

+457
-117
lines changed

docs/protocol/draft/schema.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ The input specification for a command.
16291629

16301630
**Type:** Union
16311631

1632-
<ResponseField name="Variant">
1632+
<ResponseField name="unstructured">
16331633
All text that was typed after the command name is provided as input.
16341634

16351635
<Expandable title="Properties">
@@ -2180,7 +2180,7 @@ because of resource constraints or shutdown.
21802180
**Resource not found**: A given resource, such as a file, was not found.
21812181
</ResponseField>
21822182

2183-
<ResponseField name="integer" type="int32">
2183+
<ResponseField name="Other" type="int32">
21842184
Other undefined error code.
21852185
</ResponseField>
21862186

@@ -2422,7 +2422,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
24222422
</Expandable>
24232423
</ResponseField>
24242424

2425-
<ResponseField name="Variant">
2425+
<ResponseField name="stdio">
24262426
Stdio transport configuration
24272427

24282428
All Agents MUST support this transport.
@@ -2815,11 +2815,11 @@ The Server MUST reply with the same value in the Response object if included. Th
28152815
{""}
28162816
</ResponseField>
28172817

2818-
<ResponseField name="integer" type="int64">
2818+
<ResponseField name="Number" type="int64">
28192819
{""}
28202820
</ResponseField>
28212821

2822-
<ResponseField name="string" type="string">
2822+
<ResponseField name="Str" type="string">
28232823
{""}
28242824
</ResponseField>
28252825

@@ -3062,7 +3062,7 @@ Category names that do not begin with `_` are reserved for the ACP spec.
30623062
Thought/reasoning level selector.
30633063
</ResponseField>
30643064

3065-
<ResponseField name="string" type="string">
3065+
<ResponseField name="other" type="string">
30663066
Unknown / uncategorized selector.
30673067
</ResponseField>
30683068

@@ -3163,11 +3163,11 @@ Possible values for a session configuration option.
31633163

31643164
**Type:** Union
31653165

3166-
<ResponseField name="array" type="array">
3166+
<ResponseField name="Ungrouped" type="array">
31673167
A flat list of options with no grouping.
31683168
</ResponseField>
31693169

3170-
<ResponseField name="array" type="array">
3170+
<ResponseField name="Grouped" type="array">
31713171
A list of options grouped under headers.
31723172
</ResponseField>
31733173

docs/protocol/schema.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ The input specification for a command.
11591159

11601160
**Type:** Union
11611161

1162-
<ResponseField name="Variant">
1162+
<ResponseField name="unstructured">
11631163
All text that was typed after the command name is provided as input.
11641164

11651165
<Expandable title="Properties">
@@ -1676,7 +1676,7 @@ and use the reserved range (-32000 to -32099) for protocol-specific errors.
16761676
**Resource not found**: A given resource, such as a file, was not found.
16771677
</ResponseField>
16781678

1679-
<ResponseField name="integer" type="int32">
1679+
<ResponseField name="Other" type="int32">
16801680
Other undefined error code.
16811681
</ResponseField>
16821682

@@ -1918,7 +1918,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
19181918
</Expandable>
19191919
</ResponseField>
19201920

1921-
<ResponseField name="Variant">
1921+
<ResponseField name="stdio">
19221922
Stdio transport configuration
19231923

19241924
All Agents MUST support this transport.
@@ -2271,11 +2271,11 @@ The Server MUST reply with the same value in the Response object if included. Th
22712271
{""}
22722272
</ResponseField>
22732273

2274-
<ResponseField name="integer" type="int64">
2274+
<ResponseField name="Number" type="int64">
22752275
{""}
22762276
</ResponseField>
22772277

2278-
<ResponseField name="string" type="string">
2278+
<ResponseField name="Str" type="string">
22792279
{""}
22802280
</ResponseField>
22812281

0 commit comments

Comments
 (0)