@steerable/agent-shell-web 0.14.4 → 0.14.6

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 (51) hide show
  1. package/package.json +4 -4
  2. package/src/components/AgentSidebar.tsx +189 -46
  3. package/src/components/ChatHeader.tsx +12 -1
  4. package/src/components/SidebarAccount.tsx +33 -41
  5. package/src/components/chat/AssistantMessage.tsx +25 -4
  6. package/src/components/chat/ChatInput.tsx +169 -111
  7. package/src/components/chat/ChatProjectBadge.tsx +233 -88
  8. package/src/components/chat/ContextUsagePill.tsx +20 -5
  9. package/src/components/chat/ExecPolicyPicker.tsx +72 -67
  10. package/src/components/chat/LocalChatPanel.tsx +34 -34
  11. package/src/components/chat/MessageList.tsx +109 -19
  12. package/src/components/chat/ModelPicker.tsx +2 -2
  13. package/src/components/chat/SessionTodoList.tsx +63 -72
  14. package/src/components/chat/TurnFilesCard.tsx +270 -112
  15. package/src/components/chat/TurnProcessGroup.tsx +3 -0
  16. package/src/components/chat/TurnProcessTimeline.tsx +13 -0
  17. package/src/components/chat/UserMessage.tsx +8 -1
  18. package/src/components/chat/next-steps-tags.ts +13 -0
  19. package/src/components/chat/process-status.ts +112 -2
  20. package/src/components/chat/todo-list-model.ts +52 -4
  21. package/src/components/settings/AgentsSettingsPanel.tsx +3 -3
  22. package/src/components/settings/AppUpdateSettingsPanel.tsx +67 -43
  23. package/src/components/settings/AppearanceSettingsPanel.tsx +101 -134
  24. package/src/components/settings/CliInstallSettingsPanel.tsx +25 -23
  25. package/src/components/settings/DiagnoseSettingsPanel.tsx +3 -3
  26. package/src/components/settings/InsightsSettingsPanel.tsx +5 -7
  27. package/src/components/settings/LlmSettingsPanel.tsx +22 -2
  28. package/src/components/settings/McpSettingsPanel.tsx +4 -5
  29. package/src/components/settings/MemorySettingsPanel.tsx +210 -159
  30. package/src/components/settings/OrchestrationSettingsPanel.tsx +79 -121
  31. package/src/components/settings/PortableSettingsPanel.tsx +62 -49
  32. package/src/components/settings/PythonRunnerSettingsPanel.tsx +2 -4
  33. package/src/components/settings/SecuritySettingsPanel.tsx +91 -70
  34. package/src/components/settings/SettingsSidebar.tsx +238 -0
  35. package/src/components/settings/SkillsSettingsPanel.tsx +3 -4
  36. package/src/components/settings/TelemetrySettingsPanel.tsx +2 -7
  37. package/src/components/settings/UsagePanel.tsx +27 -35
  38. package/src/components/settings/WebSearchSettingsPanel.tsx +89 -88
  39. package/src/components/settings/primitives.tsx +302 -0
  40. package/src/components/settings/settings-registry.ts +371 -0
  41. package/src/layouts/AgentLayout.tsx +275 -12
  42. package/src/layouts/PanelToggleButton.tsx +27 -9
  43. package/src/layouts/conversation-preview.ts +3 -0
  44. package/src/layouts/request-chat-slot.ts +20 -0
  45. package/src/layouts/right-panel-tabs.ts +32 -0
  46. package/src/lib/chat-draft-store.ts +43 -0
  47. package/src/lib/file-preview-registry.ts +57 -0
  48. package/src/packs/registry.ts +2 -0
  49. package/src/pages/AgentPage.tsx +17 -4
  50. package/src/pages/SettingsPage.tsx +327 -489
  51. package/src/styles/index.css +6 -0
@@ -26,6 +26,7 @@ import {
26
26
  readStoredExecPolicy,
27
27
  type ExecPolicy,
28
28
  } from "@/lib/exec-policy";
29
+ import { clearChatDraft, getChatDraft, setChatDraft } from "@/lib/chat-draft-store";
29
30
  import { clampWebChatMode, hostToolChrome, settingsChrome } from "@/lib/host-tools";
30
31
  import type { ExecutedAction } from "@/components/chat/ExecutedActionsCard";
31
32
  import { inspectTaskTitle, type InspectTaskInput } from "@/components/chat/executed-actions-model";
@@ -1740,6 +1741,7 @@ function AgentChatView({
1740
1741
  )}
1741
1742
  <LocalChatPanel
1742
1743
  chatId={chatId}
1744
+ preserveDraft
1743
1745
  messages={effectiveMessages}
1744
1746
  isStreaming={effectiveIsStreaming}
1745
1747
  onSubmit={handleSubmit}
@@ -1759,6 +1761,8 @@ function AgentChatView({
1759
1761
  chatSlots={ctx.chatSlots}
1760
1762
  rightPanel={ctx.rightPanel}
1761
1763
  openPanelIds={ctx.openPanelIds}
1764
+ hiddenPanelCount={ctx.hiddenPanelCount}
1765
+ hiddenPanelTitle={ctx.hiddenPanelTitle}
1762
1766
  onOpenRightPanel={ctx.onOpenRightPanel}
1763
1767
  showProject={showProjectsChrome}
1764
1768
  project={chatProject}
@@ -1778,7 +1782,7 @@ function AgentChatView({
1778
1782
  : undefined
1779
1783
  }
1780
1784
  onEditUserMessage={hasHostBridge() ? handleEditUserMessage : undefined}
1781
- inputPlaceholder={t("Message the local Agent…")}
1785
+ inputPlaceholder={t("Message the Agent, type / for skills and commands…")}
1782
1786
  agents={ctx.agents}
1783
1787
  chats={ctx.chats}
1784
1788
  currentAgent={agent}
@@ -1927,7 +1931,14 @@ function EmptyChatGate() {
1927
1931
  const navigate = useNavigate();
1928
1932
  const [searchParams] = useSearchParams();
1929
1933
  const projectIdFromUrl = searchParams.get("projectId");
1930
- const [inputValue, setInputValue] = useState("");
1934
+ const [inputValue, setInputValueState] = useState(() => getChatDraft(null));
1935
+ const setInputValue = useCallback((next: string | ((prev: string) => string)) => {
1936
+ setInputValueState((prev) => {
1937
+ const resolved = typeof next === "function" ? next(prev) : next;
1938
+ setChatDraft(null, resolved);
1939
+ return resolved;
1940
+ });
1941
+ }, []);
1931
1942
  const [files, setFiles] = useState<AttachmentFile[]>([]);
1932
1943
  const [mentionReferences, setMentionReferences] = useState<
1933
1944
  MentionReference[]
@@ -2050,6 +2061,7 @@ function EmptyChatGate() {
2050
2061
  };
2051
2062
 
2052
2063
  writeChatModeForSession(id, effectiveMode);
2064
+ clearChatDraft(null);
2053
2065
  setPendingFirstMessage({
2054
2066
  chatId: id,
2055
2067
  content,
@@ -2107,8 +2119,9 @@ function EmptyChatGate() {
2107
2119
  placeholder={
2108
2120
  mode === "plan"
2109
2121
  ? t("Describe your goal. The Agent will make a plan first…")
2110
- : t("Message the local Agent…")
2122
+ : t("Ask anything, type / for skills and commands…")
2111
2123
  }
2124
+ layoutVariant="hero"
2112
2125
  currentAgent={selectedAgent}
2113
2126
  agents={ctx.agents}
2114
2127
  chats={ctx.chats}
@@ -2119,7 +2132,7 @@ function EmptyChatGate() {
2119
2132
  ? () => setLlmSettingsOpen(true)
2120
2133
  : undefined
2121
2134
  }
2122
- toolbarExtras={
2135
+ toolbarTrailing={
2123
2136
  <ModelPicker
2124
2137
  model={modelOverride}
2125
2138
  reasoningEffort={effortOverride}