@terreno/blocks 57.10.1

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.
Files changed (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/biome.jsonc +18 -0
  4. package/bunfig.toml +6 -0
  5. package/dist/asks/errors.d.ts +77 -0
  6. package/dist/asks/errors.js +364 -0
  7. package/dist/asks/files.d.ts +53 -0
  8. package/dist/asks/files.js +171 -0
  9. package/dist/asks/formValues.d.ts +32 -0
  10. package/dist/asks/formValues.js +229 -0
  11. package/dist/asks/headless.d.ts +227 -0
  12. package/dist/asks/headless.js +94 -0
  13. package/dist/asks/jsonSchema.d.ts +6 -0
  14. package/dist/asks/jsonSchema.js +62 -0
  15. package/dist/asks/limits.d.ts +58 -0
  16. package/dist/asks/limits.js +61 -0
  17. package/dist/asks/prompt.d.ts +10 -0
  18. package/dist/asks/prompt.js +144 -0
  19. package/dist/asks/schema.d.ts +826 -0
  20. package/dist/asks/schema.js +864 -0
  21. package/dist/asks/simpleCard.d.ts +85 -0
  22. package/dist/asks/simpleCard.js +279 -0
  23. package/dist/asks/validateInput.d.ts +13 -0
  24. package/dist/asks/validateInput.js +19 -0
  25. package/dist/asks/validateResponse.d.ts +13 -0
  26. package/dist/asks/validateResponse.js +278 -0
  27. package/dist/cli.d.ts +11 -0
  28. package/dist/cli.js +58 -0
  29. package/dist/errors.d.ts +51 -0
  30. package/dist/errors.js +106 -0
  31. package/dist/index.d.ts +31 -0
  32. package/dist/index.js +111 -0
  33. package/dist/jsonSchema.d.ts +5 -0
  34. package/dist/jsonSchema.js +12 -0
  35. package/dist/limits.d.ts +27 -0
  36. package/dist/limits.js +30 -0
  37. package/dist/lint.d.ts +21 -0
  38. package/dist/lint.js +388 -0
  39. package/dist/parse.d.ts +16 -0
  40. package/dist/parse.js +95 -0
  41. package/dist/parsePartial.d.ts +12 -0
  42. package/dist/parsePartial.js +105 -0
  43. package/dist/prompt.d.ts +9 -0
  44. package/dist/prompt.js +95 -0
  45. package/dist/schema.d.ts +199 -0
  46. package/dist/schema.js +277 -0
  47. package/dist/validate.d.ts +17 -0
  48. package/dist/validate.js +331 -0
  49. package/package.json +60 -0
  50. package/schemas/pendingAsksResponse.schema.json +195 -0
  51. package/schemas/simpleCard.schema.json +135 -0
  52. package/schemas/turnRequest.schema.json +108 -0
  53. package/schemas/turnResponse.schema.json +204 -0
  54. package/scripts/writeJsonSchemas.ts +11 -0
  55. package/src/asks/docParity.test.ts +65 -0
  56. package/src/asks/errors.test.ts +250 -0
  57. package/src/asks/errors.ts +449 -0
  58. package/src/asks/files.test.ts +294 -0
  59. package/src/asks/files.ts +216 -0
  60. package/src/asks/fixtures/invalid/choice-blank-text.json +20 -0
  61. package/src/asks/fixtures/invalid/choice-default-not-in-options.json +13 -0
  62. package/src/asks/fixtures/invalid/choice-default-selects-two.json +16 -0
  63. package/src/asks/fixtures/invalid/choice-description-too-long.json +24 -0
  64. package/src/asks/fixtures/invalid/choice-duplicate-ids.json +17 -0
  65. package/src/asks/fixtures/invalid/choice-label-too-long.json +23 -0
  66. package/src/asks/fixtures/invalid/choice-many-bounds-not-whole.json +17 -0
  67. package/src/asks/fixtures/invalid/choice-many-bounds-out-of-range.json +17 -0
  68. package/src/asks/fixtures/invalid/choice-many-default-duplicate.json +17 -0
  69. package/src/asks/fixtures/invalid/choice-many-default-too-many.json +15 -0
  70. package/src/asks/fixtures/invalid/choice-many-max-above-options.json +14 -0
  71. package/src/asks/fixtures/invalid/choice-many-min-above-choices.json +13 -0
  72. package/src/asks/fixtures/invalid/choice-many-min-above-max.json +15 -0
  73. package/src/asks/fixtures/invalid/choice-missing-required.json +14 -0
  74. package/src/asks/fixtures/invalid/choice-mixed-errors.json +19 -0
  75. package/src/asks/fixtures/invalid/choice-not-an-object.json +5 -0
  76. package/src/asks/fixtures/invalid/choice-one-with-many-fields.json +19 -0
  77. package/src/asks/fixtures/invalid/choice-option-id-format.json +35 -0
  78. package/src/asks/fixtures/invalid/choice-options-not-objects.json +12 -0
  79. package/src/asks/fixtures/invalid/choice-other-label-too-long.json +25 -0
  80. package/src/asks/fixtures/invalid/choice-other-label-without-allow-other.json +14 -0
  81. package/src/asks/fixtures/invalid/choice-prompt-empty.json +12 -0
  82. package/src/asks/fixtures/invalid/choice-prompt-too-long.json +23 -0
  83. package/src/asks/fixtures/invalid/choice-select-unknown.json +12 -0
  84. package/src/asks/fixtures/invalid/choice-submit-label-too-long.json +13 -0
  85. package/src/asks/fixtures/invalid/choice-title-too-long.json +24 -0
  86. package/src/asks/fixtures/invalid/choice-too-few-options.json +9 -0
  87. package/src/asks/fixtures/invalid/choice-too-many-options.json +219 -0
  88. package/src/asks/fixtures/invalid/choice-unknown-key-option.json +15 -0
  89. package/src/asks/fixtures/invalid/choice-unknown-key-root.json +13 -0
  90. package/src/asks/fixtures/invalid/choice-wrong-types.json +16 -0
  91. package/src/asks/fixtures/invalid/confirm-emoji-label-too-long.json +13 -0
  92. package/src/asks/fixtures/invalid/confirm-label-too-long.json +14 -0
  93. package/src/asks/fixtures/invalid/confirm-labels-alike-after-trim.json +14 -0
  94. package/src/asks/fixtures/invalid/confirm-labels-alike.json +13 -0
  95. package/src/asks/fixtures/invalid/confirm-missing-prompt-blank-label.json +16 -0
  96. package/src/asks/fixtures/invalid/confirm-unknown-keys.json +23 -0
  97. package/src/asks/fixtures/invalid/confirm-wrong-types.json +18 -0
  98. package/src/asks/fixtures/invalid/files-accept-duplicate.json +13 -0
  99. package/src/asks/fixtures/invalid/files-accept-empty.json +13 -0
  100. package/src/asks/fixtures/invalid/files-accept-unknown.json +13 -0
  101. package/src/asks/fixtures/invalid/files-counts-out-of-range.json +19 -0
  102. package/src/asks/fixtures/invalid/files-min-above-max.json +15 -0
  103. package/src/asks/fixtures/invalid/files-missing-accept-unknown-key.json +17 -0
  104. package/src/asks/fixtures/invalid/form-default-bad-format.json +40 -0
  105. package/src/asks/fixtures/invalid/form-default-invalid-date.json +40 -0
  106. package/src/asks/fixtures/invalid/form-default-not-in-options.json +58 -0
  107. package/src/asks/fixtures/invalid/form-default-out-of-range.json +33 -0
  108. package/src/asks/fixtures/invalid/form-default-text-bounds.json +42 -0
  109. package/src/asks/fixtures/invalid/form-default-wrong-type.json +30 -0
  110. package/src/asks/fixtures/invalid/form-duplicate-field-ids.json +24 -0
  111. package/src/asks/fixtures/invalid/form-field-id-format.json +19 -0
  112. package/src/asks/fixtures/invalid/form-field-text-limits.json +33 -0
  113. package/src/asks/fixtures/invalid/form-keys-of-another-type.json +39 -0
  114. package/src/asks/fixtures/invalid/form-length-above-cap.json +30 -0
  115. package/src/asks/fixtures/invalid/form-min-above-max.json +32 -0
  116. package/src/asks/fixtures/invalid/form-no-fields.json +13 -0
  117. package/src/asks/fixtures/invalid/form-select-options.json +44 -0
  118. package/src/asks/fixtures/invalid/form-too-many-fields.json +59 -0
  119. package/src/asks/fixtures/invalid/form-unknown-field-type.json +27 -0
  120. package/src/asks/fixtures/invalid/markdown-bounds-out-of-range.json +18 -0
  121. package/src/asks/fixtures/invalid/markdown-initial-above-cap.json +13 -0
  122. package/src/asks/fixtures/invalid/markdown-max-above-cap.json +13 -0
  123. package/src/asks/fixtures/invalid/markdown-min-above-cap.json +13 -0
  124. package/src/asks/fixtures/invalid/markdown-min-above-max.json +14 -0
  125. package/src/asks/fixtures/invalid/markdown-placeholder-too-long.json +13 -0
  126. package/src/asks/fixtures/invalid/markdown-wrong-types-unknown-key.json +27 -0
  127. package/src/asks/fixtures/valid/choice-emoji-label-cut.json +32 -0
  128. package/src/asks/fixtures/valid/choice-labels-collide-after-cut.json +21 -0
  129. package/src/asks/fixtures/valid/choice-long-text-cut.json +41 -0
  130. package/src/asks/fixtures/valid/choice-many-default-below-min.json +24 -0
  131. package/src/asks/fixtures/valid/choice-many-every-choice-with-other.json +24 -0
  132. package/src/asks/fixtures/valid/choice-many-no-default.json +21 -0
  133. package/src/asks/fixtures/valid/choice-many-optional-no-buttons.json +20 -0
  134. package/src/asks/fixtures/valid/choice-many-options-default-label-collides.json +23 -0
  135. package/src/asks/fixtures/valid/choice-many-options-no-buttons.json +21 -0
  136. package/src/asks/fixtures/valid/choice-many-options-no-default.json +22 -0
  137. package/src/asks/fixtures/valid/choice-many-options-with-default.json +30 -0
  138. package/src/asks/fixtures/valid/choice-many-required-with-default.json +29 -0
  139. package/src/asks/fixtures/valid/choice-many-single-pick-or-other.json +29 -0
  140. package/src/asks/fixtures/valid/choice-many-toppings-with-default.json +36 -0
  141. package/src/asks/fixtures/valid/choice-max-limits.json +245 -0
  142. package/src/asks/fixtures/valid/choice-plan-with-default.json +42 -0
  143. package/src/asks/fixtures/valid/choice-two-options-no-decline.json +32 -0
  144. package/src/asks/fixtures/valid/choice-two-options.json +32 -0
  145. package/src/asks/fixtures/valid/confirm-allow-decline.json +40 -0
  146. package/src/asks/fixtures/valid/confirm-default-labels.json +36 -0
  147. package/src/asks/fixtures/valid/confirm-destructive-delete.json +41 -0
  148. package/src/asks/fixtures/valid/confirm-emoji-labels.json +38 -0
  149. package/src/asks/fixtures/valid/confirm-long-text-cut.json +40 -0
  150. package/src/asks/fixtures/valid/files-every-type.json +28 -0
  151. package/src/asks/fixtures/valid/files-one-csv-no-decline.json +16 -0
  152. package/src/asks/fixtures/valid/files-receipt-photos.json +24 -0
  153. package/src/asks/fixtures/valid/form-boolean-newsletter.json +30 -0
  154. package/src/asks/fixtures/valid/form-date-due.json +44 -0
  155. package/src/asks/fixtures/valid/form-datetime-meeting.json +44 -0
  156. package/src/asks/fixtures/valid/form-datetime-minutes-offset.json +44 -0
  157. package/src/asks/fixtures/valid/form-eight-fields.json +71 -0
  158. package/src/asks/fixtures/valid/form-email-contact.json +44 -0
  159. package/src/asks/fixtures/valid/form-invoice-details.json +68 -0
  160. package/src/asks/fixtures/valid/form-multiselect-channels.json +64 -0
  161. package/src/asks/fixtures/valid/form-number-budget.json +45 -0
  162. package/src/asks/fixtures/valid/form-phone-callback.json +44 -0
  163. package/src/asks/fixtures/valid/form-select-shipping.json +58 -0
  164. package/src/asks/fixtures/valid/form-text-required-default.json +47 -0
  165. package/src/asks/fixtures/valid/form-textarea-notes.json +23 -0
  166. package/src/asks/fixtures/valid/form-time-reminder.json +44 -0
  167. package/src/asks/fixtures/valid/form-url-website.json +30 -0
  168. package/src/asks/fixtures/valid/markdown-announcement-draft.json +39 -0
  169. package/src/asks/fixtures/valid/markdown-empty-draft.json +34 -0
  170. package/src/asks/fixtures/valid/markdown-initial-blank-below-min.json +24 -0
  171. package/src/asks/fixtures/valid/markdown-initial-over-max.json +24 -0
  172. package/src/asks/fixtures/valid/markdown-long-text-cut.json +37 -0
  173. package/src/asks/fixtures/valid/markdown-no-decline.json +28 -0
  174. package/src/asks/fixtures/valid/markdown-no-initial-with-min.json +25 -0
  175. package/src/asks/formValues.ts +320 -0
  176. package/src/asks/headless.test.ts +146 -0
  177. package/src/asks/headless.ts +130 -0
  178. package/src/asks/jsonSchema.test.ts +171 -0
  179. package/src/asks/jsonSchema.ts +89 -0
  180. package/src/asks/limits.ts +58 -0
  181. package/src/asks/prompt.test.ts +200 -0
  182. package/src/asks/prompt.ts +173 -0
  183. package/src/asks/schema.test.ts +198 -0
  184. package/src/asks/schema.ts +1203 -0
  185. package/src/asks/simpleCard.test.ts +998 -0
  186. package/src/asks/simpleCard.ts +341 -0
  187. package/src/asks/validateInput.test.ts +875 -0
  188. package/src/asks/validateInput.ts +24 -0
  189. package/src/asks/validateResponse.test.ts +740 -0
  190. package/src/asks/validateResponse.ts +341 -0
  191. package/src/blocksDocParity.test.ts +21 -0
  192. package/src/cli.test.ts +134 -0
  193. package/src/cli.ts +65 -0
  194. package/src/display.test.ts +68 -0
  195. package/src/errors.test.ts +29 -0
  196. package/src/errors.ts +125 -0
  197. package/src/fixtures/invalid/column-not-found.yaml +14 -0
  198. package/src/fixtures/invalid/column-type.yaml +14 -0
  199. package/src/fixtures/invalid/dataset-not-found.yaml +7 -0
  200. package/src/fixtures/invalid/dataset-too-large.yaml +20 -0
  201. package/src/fixtures/invalid/depth-exceeded.yaml +10 -0
  202. package/src/fixtures/invalid/duplicate-id.yaml +6 -0
  203. package/src/fixtures/invalid/invalid-enum.yaml +5 -0
  204. package/src/fixtures/invalid/key-order.yaml +4 -0
  205. package/src/fixtures/invalid/missing-required.yaml +3 -0
  206. package/src/fixtures/invalid/not-a-document.txt +1 -0
  207. package/src/fixtures/invalid/row-arity.yaml +11 -0
  208. package/src/fixtures/invalid/select-target.yaml +12 -0
  209. package/src/fixtures/invalid/table-too-wide.yaml +9 -0
  210. package/src/fixtures/invalid/too-many-points.yaml +8 -0
  211. package/src/fixtures/invalid/unknown-key.yaml +5 -0
  212. package/src/fixtures/invalid/unsupported-version.yaml +4 -0
  213. package/src/fixtures/invalid/yaml-anchor.yaml +6 -0
  214. package/src/fixtures/partial/cut-after-divider.yaml +5 -0
  215. package/src/fixtures/valid/actions.yaml +32 -0
  216. package/src/fixtures/valid/chart.yaml +20 -0
  217. package/src/fixtures/valid/layout.yaml +26 -0
  218. package/src/fixtures/valid/prose.yaml +4 -0
  219. package/src/html.test.ts +52 -0
  220. package/src/index.test.ts +114 -0
  221. package/src/index.ts +175 -0
  222. package/src/jsonSchema.test.ts +33 -0
  223. package/src/jsonSchema.ts +11 -0
  224. package/src/limits.ts +27 -0
  225. package/src/lint.test.ts +289 -0
  226. package/src/lint.ts +484 -0
  227. package/src/parse.test.ts +281 -0
  228. package/src/parse.ts +104 -0
  229. package/src/parsePartial.test.ts +53 -0
  230. package/src/parsePartial.ts +116 -0
  231. package/src/prompt.test.ts +24 -0
  232. package/src/prompt.ts +104 -0
  233. package/src/schema.ts +509 -0
  234. package/src/tests/askFixtures.ts +40 -0
  235. package/src/validate.perf.test.ts +43 -0
  236. package/src/validate.ts +369 -0
  237. package/tsconfig.json +18 -0
@@ -0,0 +1,245 @@
1
+ {
2
+ "kind": "choice",
3
+ "input": {
4
+ "title": "tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt",
5
+ "prompt": "pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp",
6
+ "select": "one",
7
+ "options": [
8
+ {
9
+ "description": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
10
+ "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
11
+ "label": "llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll"
12
+ },
13
+ {
14
+ "id": "option-2",
15
+ "label": "Option 2"
16
+ },
17
+ {
18
+ "id": "option-3",
19
+ "label": "Option 3"
20
+ },
21
+ {
22
+ "id": "option-4",
23
+ "label": "Option 4"
24
+ },
25
+ {
26
+ "id": "option-5",
27
+ "label": "Option 5"
28
+ },
29
+ {
30
+ "id": "option-6",
31
+ "label": "Option 6"
32
+ },
33
+ {
34
+ "id": "option-7",
35
+ "label": "Option 7"
36
+ },
37
+ {
38
+ "id": "option-8",
39
+ "label": "Option 8"
40
+ },
41
+ {
42
+ "id": "option-9",
43
+ "label": "Option 9"
44
+ },
45
+ {
46
+ "id": "option-10",
47
+ "label": "Option 10"
48
+ },
49
+ {
50
+ "id": "option-11",
51
+ "label": "Option 11"
52
+ },
53
+ {
54
+ "id": "option-12",
55
+ "label": "Option 12"
56
+ },
57
+ {
58
+ "id": "option-13",
59
+ "label": "Option 13"
60
+ },
61
+ {
62
+ "id": "option-14",
63
+ "label": "Option 14"
64
+ },
65
+ {
66
+ "id": "option-15",
67
+ "label": "Option 15"
68
+ },
69
+ {
70
+ "id": "option-16",
71
+ "label": "Option 16"
72
+ },
73
+ {
74
+ "id": "option-17",
75
+ "label": "Option 17"
76
+ },
77
+ {
78
+ "id": "option-18",
79
+ "label": "Option 18"
80
+ },
81
+ {
82
+ "id": "option-19",
83
+ "label": "Option 19"
84
+ },
85
+ {
86
+ "id": "option-20",
87
+ "label": "Option 20"
88
+ },
89
+ {
90
+ "id": "option-21",
91
+ "label": "Option 21"
92
+ },
93
+ {
94
+ "id": "option-22",
95
+ "label": "Option 22"
96
+ },
97
+ {
98
+ "id": "option-23",
99
+ "label": "Option 23"
100
+ },
101
+ {
102
+ "id": "option-24",
103
+ "label": "Option 24"
104
+ },
105
+ {
106
+ "id": "option-25",
107
+ "label": "Option 25"
108
+ },
109
+ {
110
+ "id": "option-26",
111
+ "label": "Option 26"
112
+ },
113
+ {
114
+ "id": "option-27",
115
+ "label": "Option 27"
116
+ },
117
+ {
118
+ "id": "option-28",
119
+ "label": "Option 28"
120
+ },
121
+ {
122
+ "id": "option-29",
123
+ "label": "Option 29"
124
+ },
125
+ {
126
+ "id": "option-30",
127
+ "label": "Option 30"
128
+ },
129
+ {
130
+ "id": "option-31",
131
+ "label": "Option 31"
132
+ },
133
+ {
134
+ "id": "option-32",
135
+ "label": "Option 32"
136
+ },
137
+ {
138
+ "id": "option-33",
139
+ "label": "Option 33"
140
+ },
141
+ {
142
+ "id": "option-34",
143
+ "label": "Option 34"
144
+ },
145
+ {
146
+ "id": "option-35",
147
+ "label": "Option 35"
148
+ },
149
+ {
150
+ "id": "option-36",
151
+ "label": "Option 36"
152
+ },
153
+ {
154
+ "id": "option-37",
155
+ "label": "Option 37"
156
+ },
157
+ {
158
+ "id": "option-38",
159
+ "label": "Option 38"
160
+ },
161
+ {
162
+ "id": "option-39",
163
+ "label": "Option 39"
164
+ },
165
+ {
166
+ "id": "option-40",
167
+ "label": "Option 40"
168
+ },
169
+ {
170
+ "id": "option-41",
171
+ "label": "Option 41"
172
+ },
173
+ {
174
+ "id": "option-42",
175
+ "label": "Option 42"
176
+ },
177
+ {
178
+ "id": "option-43",
179
+ "label": "Option 43"
180
+ },
181
+ {
182
+ "id": "option-44",
183
+ "label": "Option 44"
184
+ },
185
+ {
186
+ "id": "option-45",
187
+ "label": "Option 45"
188
+ },
189
+ {
190
+ "id": "option-46",
191
+ "label": "Option 46"
192
+ },
193
+ {
194
+ "id": "option-47",
195
+ "label": "Option 47"
196
+ },
197
+ {
198
+ "id": "option-48",
199
+ "label": "Option 48"
200
+ },
201
+ {
202
+ "id": "option-49",
203
+ "label": "Option 49"
204
+ },
205
+ {
206
+ "id": "option-50",
207
+ "label": "Option 50"
208
+ }
209
+ ],
210
+ "default": [
211
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
212
+ ],
213
+ "submitLabel": "ssssssssssssssssssssssss"
214
+ },
215
+ "simple": {
216
+ "toolCallId": "call_fixture",
217
+ "kind": "choice",
218
+ "title": "ttttttttttttttttttttttttttttttttttttttt…",
219
+ "text": "ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp…",
220
+ "handoff": true,
221
+ "buttons": [
222
+ {
223
+ "id": "use-default",
224
+ "label": "Use \"lllllllllllll…\"",
225
+ "style": "primary",
226
+ "response": {
227
+ "action": "accept",
228
+ "content": {
229
+ "selected": [
230
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
231
+ ]
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "id": "skip",
237
+ "label": "Skip",
238
+ "style": "cancel",
239
+ "response": {
240
+ "action": "decline"
241
+ }
242
+ }
243
+ ]
244
+ }
245
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "kind": "choice",
3
+ "input": {
4
+ "title": "Choose a plan",
5
+ "prompt": "Which plan should I set up?",
6
+ "select": "one",
7
+ "options": [
8
+ {"id": "starter", "label": "Starter", "description": "$0, one seat"},
9
+ {"id": "team", "label": "Team", "description": "$20 per seat"},
10
+ {"id": "enterprise", "label": "Enterprise"}
11
+ ],
12
+ "default": ["team"],
13
+ "submitLabel": "Set up plan"
14
+ },
15
+ "simple": {
16
+ "toolCallId": "call_fixture",
17
+ "kind": "choice",
18
+ "title": "Choose a plan",
19
+ "text": "Which plan should I set up?",
20
+ "handoff": false,
21
+ "buttons": [
22
+ {
23
+ "id": "option:team",
24
+ "label": "Team",
25
+ "style": "primary",
26
+ "response": {"action": "accept", "content": {"selected": ["team"]}}
27
+ },
28
+ {
29
+ "id": "option:starter",
30
+ "label": "Starter",
31
+ "style": "default",
32
+ "response": {"action": "accept", "content": {"selected": ["starter"]}}
33
+ },
34
+ {
35
+ "id": "option:enterprise",
36
+ "label": "Enterprise",
37
+ "style": "default",
38
+ "response": {"action": "accept", "content": {"selected": ["enterprise"]}}
39
+ }
40
+ ]
41
+ }
42
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "kind": "choice",
3
+ "input": {
4
+ "prompt": "Which account should I bill?",
5
+ "select": "one",
6
+ "allowDecline": false,
7
+ "options": [
8
+ {"id": "personal", "label": "Personal"},
9
+ {"id": "work", "label": "Work"}
10
+ ]
11
+ },
12
+ "simple": {
13
+ "toolCallId": "call_fixture",
14
+ "kind": "choice",
15
+ "text": "Which account should I bill?",
16
+ "handoff": false,
17
+ "buttons": [
18
+ {
19
+ "id": "option:personal",
20
+ "label": "Personal",
21
+ "style": "default",
22
+ "response": {"action": "accept", "content": {"selected": ["personal"]}}
23
+ },
24
+ {
25
+ "id": "option:work",
26
+ "label": "Work",
27
+ "style": "default",
28
+ "response": {"action": "accept", "content": {"selected": ["work"]}}
29
+ }
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "kind": "choice",
3
+ "input": {
4
+ "prompt": "Should I archive the finished todos?",
5
+ "select": "one",
6
+ "options": [
7
+ {"id": "archive", "label": "Archive them"},
8
+ {"id": "keep", "label": "Keep them"}
9
+ ]
10
+ },
11
+ "simple": {
12
+ "toolCallId": "call_fixture",
13
+ "kind": "choice",
14
+ "text": "Should I archive the finished todos?",
15
+ "handoff": false,
16
+ "buttons": [
17
+ {
18
+ "id": "option:archive",
19
+ "label": "Archive them",
20
+ "style": "default",
21
+ "response": {"action": "accept", "content": {"selected": ["archive"]}}
22
+ },
23
+ {
24
+ "id": "option:keep",
25
+ "label": "Keep them",
26
+ "style": "default",
27
+ "response": {"action": "accept", "content": {"selected": ["keep"]}}
28
+ },
29
+ {"id": "skip", "label": "Skip", "style": "cancel", "response": {"action": "decline"}}
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "kind": "confirm",
3
+ "input": {
4
+ "prompt": "Archive the 3 chats you have not opened in 90 days?",
5
+ "confirmLabel": "Archive",
6
+ "denyLabel": "Keep",
7
+ "destructive": false,
8
+ "allowDecline": true
9
+ },
10
+ "simple": {
11
+ "toolCallId": "call_fixture",
12
+ "kind": "confirm",
13
+ "text": "Archive the 3 chats you have not opened in 90 days?",
14
+ "handoff": false,
15
+ "buttons": [
16
+ {
17
+ "id": "approve",
18
+ "label": "Archive",
19
+ "style": "primary",
20
+ "response": {
21
+ "action": "accept",
22
+ "content": {
23
+ "confirmed": true
24
+ }
25
+ }
26
+ },
27
+ {
28
+ "id": "deny",
29
+ "label": "Keep",
30
+ "style": "cancel",
31
+ "response": {
32
+ "action": "accept",
33
+ "content": {
34
+ "confirmed": false
35
+ }
36
+ }
37
+ }
38
+ ]
39
+ }
40
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "kind": "confirm",
3
+ "input": {
4
+ "prompt": "Send the weekly report to the team now?"
5
+ },
6
+ "simple": {
7
+ "toolCallId": "call_fixture",
8
+ "kind": "confirm",
9
+ "text": "Send the weekly report to the team now?",
10
+ "handoff": false,
11
+ "buttons": [
12
+ {
13
+ "id": "approve",
14
+ "label": "Confirm",
15
+ "style": "primary",
16
+ "response": {
17
+ "action": "accept",
18
+ "content": {
19
+ "confirmed": true
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "id": "deny",
25
+ "label": "Cancel",
26
+ "style": "cancel",
27
+ "response": {
28
+ "action": "accept",
29
+ "content": {
30
+ "confirmed": false
31
+ }
32
+ }
33
+ }
34
+ ]
35
+ }
36
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "kind": "confirm",
3
+ "input": {
4
+ "prompt": "Delete 14 completed todos? This cannot be undone.",
5
+ "title": "Clean up todos",
6
+ "confirmLabel": "Delete 14 todos",
7
+ "denyLabel": "Keep them",
8
+ "destructive": true
9
+ },
10
+ "simple": {
11
+ "toolCallId": "call_fixture",
12
+ "kind": "confirm",
13
+ "title": "Clean up todos",
14
+ "text": "Delete 14 completed todos? This cannot be undone.",
15
+ "handoff": false,
16
+ "buttons": [
17
+ {
18
+ "id": "approve",
19
+ "label": "Delete 14 todos",
20
+ "style": "destructive",
21
+ "response": {
22
+ "action": "accept",
23
+ "content": {
24
+ "confirmed": true
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "id": "deny",
30
+ "label": "Keep them",
31
+ "style": "cancel",
32
+ "response": {
33
+ "action": "accept",
34
+ "content": {
35
+ "confirmed": false
36
+ }
37
+ }
38
+ }
39
+ ]
40
+ }
41
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "kind": "confirm",
3
+ "input": {
4
+ "prompt": "Ship the release to production?",
5
+ "confirmLabel": "Ship it 🚀",
6
+ "denyLabel": "Wait ⏳"
7
+ },
8
+ "simple": {
9
+ "toolCallId": "call_fixture",
10
+ "kind": "confirm",
11
+ "text": "Ship the release to production?",
12
+ "handoff": false,
13
+ "buttons": [
14
+ {
15
+ "id": "approve",
16
+ "label": "Ship it 🚀",
17
+ "style": "primary",
18
+ "response": {
19
+ "action": "accept",
20
+ "content": {
21
+ "confirmed": true
22
+ }
23
+ }
24
+ },
25
+ {
26
+ "id": "deny",
27
+ "label": "Wait ⏳",
28
+ "style": "cancel",
29
+ "response": {
30
+ "action": "accept",
31
+ "content": {
32
+ "confirmed": false
33
+ }
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "kind": "confirm",
3
+ "input": {
4
+ "prompt": "Send the weekly report to all 48 people on the Operations, Finance, and Support lists now? They will get it by email, and a copy goes to the shared drive, where anyone in the company can read it.",
5
+ "title": "Weekly report for the Operations and Finance teams",
6
+ "confirmLabel": "Send to 48 people",
7
+ "denyLabel": "Not yet"
8
+ },
9
+ "simple": {
10
+ "toolCallId": "call_fixture",
11
+ "kind": "confirm",
12
+ "title": "Weekly report for the Operations and…",
13
+ "text": "Send the weekly report to all 48 people on the Operations, Finance, and Support lists now? They will get it by email, and a copy goes to…",
14
+ "handoff": false,
15
+ "buttons": [
16
+ {
17
+ "id": "approve",
18
+ "label": "Send to 48 people",
19
+ "style": "primary",
20
+ "response": {
21
+ "action": "accept",
22
+ "content": {
23
+ "confirmed": true
24
+ }
25
+ }
26
+ },
27
+ {
28
+ "id": "deny",
29
+ "label": "Not yet",
30
+ "style": "cancel",
31
+ "response": {
32
+ "action": "accept",
33
+ "content": {
34
+ "confirmed": false
35
+ }
36
+ }
37
+ }
38
+ ]
39
+ }
40
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "kind": "files",
3
+ "input": {
4
+ "title": "Supporting documents for the quarterly expense report",
5
+ "prompt": "Attach every document for the expense report: receipts, the signed PDF, notes, the ledger CSV, and the JSON export.",
6
+ "accept": ["image", "pdf", "text", "csv", "json"],
7
+ "minFiles": 2,
8
+ "maxFiles": 10,
9
+ "submitLabel": "Send documents"
10
+ },
11
+ "simple": {
12
+ "buttons": [
13
+ {
14
+ "id": "skip",
15
+ "label": "Skip",
16
+ "response": {
17
+ "action": "decline"
18
+ },
19
+ "style": "cancel"
20
+ }
21
+ ],
22
+ "handoff": true,
23
+ "kind": "files",
24
+ "text": "Attach every document for the expense report: receipts, the signed PDF, notes, the ledger CSV, and the JSON export.",
25
+ "title": "Supporting documents for the quarterly…",
26
+ "toolCallId": "call_fixture"
27
+ }
28
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "kind": "files",
3
+ "input": {
4
+ "prompt": "Send the export as a CSV file.",
5
+ "accept": ["csv"],
6
+ "maxFiles": 1,
7
+ "allowDecline": false
8
+ },
9
+ "simple": {
10
+ "buttons": [],
11
+ "handoff": true,
12
+ "kind": "files",
13
+ "text": "Send the export as a CSV file.",
14
+ "toolCallId": "call_fixture"
15
+ }
16
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "kind": "files",
3
+ "input": {
4
+ "prompt": "Upload a photo of the receipt.",
5
+ "accept": ["image", "pdf"],
6
+ "maxFiles": 3
7
+ },
8
+ "simple": {
9
+ "buttons": [
10
+ {
11
+ "id": "skip",
12
+ "label": "Skip",
13
+ "response": {
14
+ "action": "decline"
15
+ },
16
+ "style": "cancel"
17
+ }
18
+ ],
19
+ "handoff": true,
20
+ "kind": "files",
21
+ "text": "Upload a photo of the receipt.",
22
+ "toolCallId": "call_fixture"
23
+ }
24
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "kind": "form",
3
+ "input": {
4
+ "prompt": "Newsletter preferences.",
5
+ "fields": [
6
+ {
7
+ "id": "subscribe",
8
+ "type": "boolean",
9
+ "label": "Send me the monthly newsletter",
10
+ "required": true
11
+ }
12
+ ]
13
+ },
14
+ "simple": {
15
+ "buttons": [
16
+ {
17
+ "id": "cancel",
18
+ "label": "Cancel",
19
+ "response": {
20
+ "action": "decline"
21
+ },
22
+ "style": "cancel"
23
+ }
24
+ ],
25
+ "handoff": true,
26
+ "kind": "form",
27
+ "text": "Newsletter preferences.",
28
+ "toolCallId": "call_fixture"
29
+ }
30
+ }