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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-theokit",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "type": "module",
5
5
  "description": "Scaffold a new TheoKit project",
6
6
  "license": "Apache-2.0",
@@ -239,30 +239,33 @@ export function App(): ReactElement {
239
239
 
240
240
  {showHelp ? <KeyboardHelp shortcuts={DEFAULT_COMPOSER_SHORTCUTS} /> : null}
241
241
 
242
- {pendingApproval ? (
243
- <ApprovalPrompt
244
- title={`Allow ${pendingApproval.toolName}?`}
245
- onDecision={(decision) => {
246
- // The prompt's choices are `once`/`always`/`reject`; only `reject` denies. Map to the client's
247
- // decision object and settle (remembering the id so the standalone gate part stops re-showing).
248
- settleApproval(pendingApproval.approvalId, decision !== 'reject')
249
- }}
250
- >
251
- <Text dimColor>{JSON.stringify(pendingApproval.input)}</Text>
252
- </ApprovalPrompt>
253
- ) : (
254
- <ChatComposer
255
- placeholder="Ask {{name}} anything…"
256
- bordered
257
- hint={exitArmed ? 'Press Ctrl+C again to quit' : '? for shortcuts'}
258
- commands={[
259
- { name: 'clear', description: 'clear the conversation' },
260
- { name: 'help', description: 'toggle the keyboard shortcuts panel' },
261
- ]}
262
- onHelpToggle={() => setShowHelp((h) => !h)}
263
- onSubmit={handleSubmit}
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}