claude-ws 0.1.16 → 0.1.18
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": "claude-ws",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A beautifully crafted workspace interface for Claude Code with real-time streaming and local SQLite database",
|
|
6
6
|
"keywords": [
|
|
@@ -133,7 +133,9 @@
|
|
|
133
133
|
"vscode-icons-js": "^11.6.1",
|
|
134
134
|
"zustand": "^5.0.9",
|
|
135
135
|
"@tailwindcss/postcss": "^4",
|
|
136
|
-
"tailwindcss": "^4"
|
|
136
|
+
"tailwindcss": "^4",
|
|
137
|
+
"tw-animate-css": "^1.4.0",
|
|
138
|
+
"drizzle-kit": "^0.31.8"
|
|
137
139
|
},
|
|
138
140
|
"devDependencies": {
|
|
139
141
|
"@types/adm-zip": "^0.5.7",
|
|
@@ -141,9 +143,7 @@
|
|
|
141
143
|
"@types/node": "^20",
|
|
142
144
|
"@types/react": "^19",
|
|
143
145
|
"@types/react-dom": "^19",
|
|
144
|
-
"drizzle-kit": "^0.31.8",
|
|
145
146
|
"eslint": "^9",
|
|
146
|
-
"eslint-config-next": "^16.1.3"
|
|
147
|
-
"tw-animate-css": "^1.4.0"
|
|
147
|
+
"eslint-config-next": "^16.1.3"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -228,11 +228,13 @@ export function CreateTaskDialog({ open, onOpenChange, onTaskCreated }: CreateTa
|
|
|
228
228
|
key={open ? `create-task-input-${tempTaskId}` : 'closed'}
|
|
229
229
|
onSubmit={() => handleSubmit(false)}
|
|
230
230
|
onChange={setChatPrompt}
|
|
231
|
-
placeholder="
|
|
231
|
+
placeholder="Type / for commands..."
|
|
232
232
|
disabled={isSubmitting}
|
|
233
233
|
hideSendButton
|
|
234
234
|
hideStats
|
|
235
235
|
taskId={tempTaskId}
|
|
236
|
+
minRows={2}
|
|
237
|
+
maxRows={4}
|
|
236
238
|
/>
|
|
237
239
|
</div>
|
|
238
240
|
|
|
@@ -33,6 +33,8 @@ interface PromptInputProps {
|
|
|
33
33
|
hideStats?: boolean;
|
|
34
34
|
onChange?: (prompt: string) => void;
|
|
35
35
|
initialValue?: string;
|
|
36
|
+
minRows?: number;
|
|
37
|
+
maxRows?: number;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export const PromptInput = forwardRef<PromptInputRef, PromptInputProps>(({
|
|
@@ -47,6 +49,8 @@ export const PromptInput = forwardRef<PromptInputRef, PromptInputProps>(({
|
|
|
47
49
|
hideStats = false,
|
|
48
50
|
onChange,
|
|
49
51
|
initialValue,
|
|
52
|
+
minRows = 1,
|
|
53
|
+
maxRows = 5,
|
|
50
54
|
}, ref) => {
|
|
51
55
|
const [prompt, setPrompt] = useState(initialValue || '');
|
|
52
56
|
const [showCommands, setShowCommands] = useState(false);
|
|
@@ -461,11 +465,15 @@ export const PromptInput = forwardRef<PromptInputRef, PromptInputProps>(({
|
|
|
461
465
|
}}
|
|
462
466
|
placeholder={placeholder}
|
|
463
467
|
disabled={disabled}
|
|
464
|
-
rows={
|
|
465
|
-
className="
|
|
468
|
+
rows={minRows}
|
|
469
|
+
className="resize-none w-full min-w-0 break-words overflow-y-auto overflow-x-hidden border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 text-sm"
|
|
466
470
|
style={{
|
|
467
471
|
fontSize: '14px',
|
|
468
|
-
fieldSizing
|
|
472
|
+
// Only use fieldSizing when minRows is 1 (auto-sizing from 1 row)
|
|
473
|
+
// Otherwise respect the minRows setting
|
|
474
|
+
...(minRows === 1 ? { fieldSizing: 'content' } : {}),
|
|
475
|
+
minHeight: `${minRows * 24 + 16}px`,
|
|
476
|
+
maxHeight: `${maxRows * 24 + 16}px`,
|
|
469
477
|
} as React.CSSProperties}
|
|
470
478
|
/>
|
|
471
479
|
</div>
|