feat(session-ui): rewrite v2 prompt input (#37102)
This commit is contained in:
@@ -22,5 +22,8 @@ export function useCommand() {
|
||||
keybind(id: string) {
|
||||
return keybinds[id]
|
||||
},
|
||||
keybindParts(id: string) {
|
||||
return keybinds[id]?.split("+") ?? []
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const dict: Record<string, string> = {
|
||||
"prompt.loading": "Loading prompt...",
|
||||
"prompt.placeholder.normal": "Ask anything...",
|
||||
"prompt.placeholder.simple": "Ask anything...",
|
||||
"prompt.placeholder.shell": "Run a shell command... {{example}}",
|
||||
"prompt.placeholder.shell": "Enter shell command... {{example}}",
|
||||
"prompt.placeholder.summarizeComment": "Summarize this comment",
|
||||
"prompt.placeholder.summarizeComments": "Summarize these comments",
|
||||
"prompt.action.attachFile": "Attach files",
|
||||
|
||||
@@ -12,6 +12,8 @@ const [data, setData] = createStore({
|
||||
session_working: () => false,
|
||||
agent: [{ name: "build", mode: "task", hidden: false }],
|
||||
command: [{ name: "fix", description: "Run fix command", source: "project" }],
|
||||
reference: [],
|
||||
mcp_resource: {},
|
||||
})
|
||||
|
||||
const sync = {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "18.0.25",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"solid-js": "catalog:",
|
||||
"storybook": "^10.2.13",
|
||||
"storybook-solidjs-vite": "^10.0.9",
|
||||
|
||||
Reference in New Issue
Block a user