create-theokit 1.17.1 → 1.17.2
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.
package/package.json
CHANGED
|
@@ -239,30 +239,33 @@ export function App(): ReactElement {
|
|
|
239
239
|
|
|
240
240
|
{showHelp ? <KeyboardHelp shortcuts={DEFAULT_COMPOSER_SHORTCUTS} /> : null}
|
|
241
241
|
|
|
242
|
-
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
{
|
|
260
|
-
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
242
|
+
{/* A one-line top margin separates the input (or the approval prompt) from the conversation above. */}
|
|
243
|
+
<Box marginTop={1} flexDirection="column">
|
|
244
|
+
{pendingApproval ? (
|
|
245
|
+
<ApprovalPrompt
|
|
246
|
+
title={`Allow ${pendingApproval.toolName}?`}
|
|
247
|
+
onDecision={(decision) => {
|
|
248
|
+
// The prompt's choices are `once`/`always`/`reject`; only `reject` denies. Map to the client's
|
|
249
|
+
// decision object and settle (remembering the id so the standalone gate part stops re-showing).
|
|
250
|
+
settleApproval(pendingApproval.approvalId, decision !== 'reject')
|
|
251
|
+
}}
|
|
252
|
+
>
|
|
253
|
+
<Text dimColor>{JSON.stringify(pendingApproval.input)}</Text>
|
|
254
|
+
</ApprovalPrompt>
|
|
255
|
+
) : (
|
|
256
|
+
<ChatComposer
|
|
257
|
+
placeholder="Ask {{name}} anything…"
|
|
258
|
+
bordered
|
|
259
|
+
hint={exitArmed ? 'Press Ctrl+C again to quit' : '? for shortcuts'}
|
|
260
|
+
commands={[
|
|
261
|
+
{ name: 'clear', description: 'clear the conversation' },
|
|
262
|
+
{ name: 'help', description: 'toggle the keyboard shortcuts panel' },
|
|
263
|
+
]}
|
|
264
|
+
onHelpToggle={() => setShowHelp((h) => !h)}
|
|
265
|
+
onSubmit={handleSubmit}
|
|
266
|
+
/>
|
|
267
|
+
)}
|
|
268
|
+
</Box>
|
|
266
269
|
|
|
267
270
|
<AppStatusBar
|
|
268
271
|
model={MODEL}
|