@steerable/agent-protocol 0.6.2 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,234 @@ export interface AskUserQuestionsPayload {
7
7
  answers?: {
8
8
  [k: string]: string | string[];
9
9
  } | null;
10
- questions: {
11
- id: string;
12
- text: string;
13
- type?: "select" | "text" | "password";
14
- options?: string[];
15
- placeholder?: string | null;
16
- multiSelect?: boolean;
17
- [k: string]: any;
18
- }[];
10
+ /**
11
+ * @minItems 1
12
+ * @maxItems 4
13
+ */
14
+ questions: [
15
+ {
16
+ id: string;
17
+ text: string;
18
+ /**
19
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
20
+ */
21
+ header?: string;
22
+ type?: "select" | "text" | "password";
23
+ /**
24
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
25
+ *
26
+ * @minItems 2
27
+ * @maxItems 4
28
+ */
29
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
30
+ placeholder?: string | null;
31
+ /**
32
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
33
+ */
34
+ multiSelect: boolean;
35
+ [k: string]: any;
36
+ }
37
+ ] | [
38
+ {
39
+ id: string;
40
+ text: string;
41
+ /**
42
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
43
+ */
44
+ header?: string;
45
+ type?: "select" | "text" | "password";
46
+ /**
47
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
48
+ *
49
+ * @minItems 2
50
+ * @maxItems 4
51
+ */
52
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
53
+ placeholder?: string | null;
54
+ /**
55
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
56
+ */
57
+ multiSelect: boolean;
58
+ [k: string]: any;
59
+ },
60
+ {
61
+ id: string;
62
+ text: string;
63
+ /**
64
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
65
+ */
66
+ header?: string;
67
+ type?: "select" | "text" | "password";
68
+ /**
69
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
70
+ *
71
+ * @minItems 2
72
+ * @maxItems 4
73
+ */
74
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
75
+ placeholder?: string | null;
76
+ /**
77
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
78
+ */
79
+ multiSelect: boolean;
80
+ [k: string]: any;
81
+ }
82
+ ] | [
83
+ {
84
+ id: string;
85
+ text: string;
86
+ /**
87
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
88
+ */
89
+ header?: string;
90
+ type?: "select" | "text" | "password";
91
+ /**
92
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
93
+ *
94
+ * @minItems 2
95
+ * @maxItems 4
96
+ */
97
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
98
+ placeholder?: string | null;
99
+ /**
100
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
101
+ */
102
+ multiSelect: boolean;
103
+ [k: string]: any;
104
+ },
105
+ {
106
+ id: string;
107
+ text: string;
108
+ /**
109
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
110
+ */
111
+ header?: string;
112
+ type?: "select" | "text" | "password";
113
+ /**
114
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
115
+ *
116
+ * @minItems 2
117
+ * @maxItems 4
118
+ */
119
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
120
+ placeholder?: string | null;
121
+ /**
122
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
123
+ */
124
+ multiSelect: boolean;
125
+ [k: string]: any;
126
+ },
127
+ {
128
+ id: string;
129
+ text: string;
130
+ /**
131
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
132
+ */
133
+ header?: string;
134
+ type?: "select" | "text" | "password";
135
+ /**
136
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
137
+ *
138
+ * @minItems 2
139
+ * @maxItems 4
140
+ */
141
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
142
+ placeholder?: string | null;
143
+ /**
144
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
145
+ */
146
+ multiSelect: boolean;
147
+ [k: string]: any;
148
+ }
149
+ ] | [
150
+ {
151
+ id: string;
152
+ text: string;
153
+ /**
154
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
155
+ */
156
+ header?: string;
157
+ type?: "select" | "text" | "password";
158
+ /**
159
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
160
+ *
161
+ * @minItems 2
162
+ * @maxItems 4
163
+ */
164
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
165
+ placeholder?: string | null;
166
+ /**
167
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
168
+ */
169
+ multiSelect: boolean;
170
+ [k: string]: any;
171
+ },
172
+ {
173
+ id: string;
174
+ text: string;
175
+ /**
176
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
177
+ */
178
+ header?: string;
179
+ type?: "select" | "text" | "password";
180
+ /**
181
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
182
+ *
183
+ * @minItems 2
184
+ * @maxItems 4
185
+ */
186
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
187
+ placeholder?: string | null;
188
+ /**
189
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
190
+ */
191
+ multiSelect: boolean;
192
+ [k: string]: any;
193
+ },
194
+ {
195
+ id: string;
196
+ text: string;
197
+ /**
198
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
199
+ */
200
+ header?: string;
201
+ type?: "select" | "text" | "password";
202
+ /**
203
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
204
+ *
205
+ * @minItems 2
206
+ * @maxItems 4
207
+ */
208
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
209
+ placeholder?: string | null;
210
+ /**
211
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
212
+ */
213
+ multiSelect: boolean;
214
+ [k: string]: any;
215
+ },
216
+ {
217
+ id: string;
218
+ text: string;
219
+ /**
220
+ * Short chip label shown above the question (Claude Code AskUserQuestion parity). Optional; hosts derive one from `text` when absent.
221
+ */
222
+ header?: string;
223
+ type?: "select" | "text" | "password";
224
+ /**
225
+ * Choices for a select question (2-4, CC parity). The host auto-appends an 'Other' free-text escape; the model does not list it.
226
+ *
227
+ * @minItems 2
228
+ * @maxItems 4
229
+ */
230
+ options?: [string, string] | [string, string, string] | [string, string, string, string];
231
+ placeholder?: string | null;
232
+ /**
233
+ * Whether the user may pick several options. Required (CC parity): the model commits to single vs multi explicitly.
234
+ */
235
+ multiSelect: boolean;
236
+ [k: string]: any;
237
+ }
238
+ ];
19
239
  [k: string]: any;
20
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/agent-protocol",
3
- "version": "0.6.2",
3
+ "version": "0.6.5",
4
4
  "description": "Steerable framework Tier 1 — wire-format types (SSEEvent, ChatMessage, ToolCall, ToolResult, AgentSession, HarnessTrace, sidecar JSON-RPC) shared by every Steerable client and server.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://steerableframework.com/",