lemma-sdk 0.2.36 → 0.2.37

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 (161) hide show
  1. package/README.md +28 -22
  2. package/dist/browser/lemma-client.js +290 -165
  3. package/dist/client.d.ts +1 -2
  4. package/dist/client.js +1 -3
  5. package/dist/index.d.ts +1 -1
  6. package/dist/namespaces/agents.js +1 -1
  7. package/dist/namespaces/conversations.d.ts +73 -0
  8. package/dist/namespaces/conversations.js +174 -0
  9. package/dist/namespaces/files.d.ts +24 -6
  10. package/dist/namespaces/files.js +25 -12
  11. package/dist/namespaces/integrations.js +1 -1
  12. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  13. package/dist/namespaces/pod-surfaces.js +6 -6
  14. package/dist/namespaces/tasks.d.ts +1 -5
  15. package/dist/namespaces/tasks.js +54 -12
  16. package/dist/openapi_client/index.d.ts +17 -32
  17. package/dist/openapi_client/index.js +8 -12
  18. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  19. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  20. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  21. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  22. package/dist/openapi_client/models/AgentModelName.js +18 -0
  23. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  24. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  25. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  26. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  27. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  28. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  29. package/dist/openapi_client/models/AgentToolset.js +17 -0
  30. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  31. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  32. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  33. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  34. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  35. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  36. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  37. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  38. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  39. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  40. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  41. package/dist/openapi_client/models/FileNamespace.js +9 -0
  42. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  43. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -1
  44. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  45. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  46. package/dist/openapi_client/models/HarnessKind.js +12 -0
  47. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  48. package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
  49. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +1 -0
  50. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +0 -4
  51. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  52. package/dist/openapi_client/models/ResourceType.js +0 -1
  53. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  54. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  55. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  56. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  57. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  58. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  59. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  60. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  61. package/dist/openapi_client/models/update.d.ts +2 -2
  62. package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
  63. package/dist/openapi_client/services/AgentConversationsService.js +217 -0
  64. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  65. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  66. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  67. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  68. package/dist/openapi_client/services/AgentToolsService.d.ts +8 -8
  69. package/dist/openapi_client/services/AgentToolsService.js +8 -8
  70. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  71. package/dist/openapi_client/services/AgentsService.js +8 -8
  72. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  73. package/dist/openapi_client/services/FilesService.js +25 -8
  74. package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
  75. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  76. package/dist/react/useAgentRun.d.ts +28 -7
  77. package/dist/react/useAgentRun.js +120 -27
  78. package/dist/react/useAssistantController.d.ts +6 -2
  79. package/dist/react/useAssistantController.js +57 -14
  80. package/dist/react/useAssistantSession.d.ts +15 -3
  81. package/dist/react/useAssistantSession.js +19 -15
  82. package/dist/react/useConversationMessages.d.ts +6 -2
  83. package/dist/react/useConversationMessages.js +2 -1
  84. package/dist/react/useConversations.d.ts +6 -2
  85. package/dist/react/useConversations.js +7 -5
  86. package/dist/react/useCreateFolder.d.ts +4 -2
  87. package/dist/react/useCreateFolder.js +6 -3
  88. package/dist/react/useDeleteFile.d.ts +4 -1
  89. package/dist/react/useDeleteFile.js +3 -3
  90. package/dist/react/useFile.d.ts +4 -2
  91. package/dist/react/useFile.js +3 -3
  92. package/dist/react/useFilePreview.d.ts +4 -1
  93. package/dist/react/useFilePreview.js +5 -4
  94. package/dist/react/useFileTree.d.ts +4 -2
  95. package/dist/react/useFileTree.js +3 -2
  96. package/dist/react/useFiles.d.ts +4 -2
  97. package/dist/react/useFiles.js +5 -3
  98. package/dist/react/useUpdateFile.d.ts +4 -2
  99. package/dist/react/useUpdateFile.js +6 -3
  100. package/dist/react/useUploadFile.d.ts +4 -2
  101. package/dist/react/useUploadFile.js +6 -3
  102. package/dist/react/useWorkflowRun.js +1 -1
  103. package/dist/react/useWorkflowStart.js +1 -1
  104. package/dist/run-utils.d.ts +2 -1
  105. package/dist/types.d.ts +62 -6
  106. package/package.json +1 -1
  107. package/dist/namespaces/assistants.d.ts +0 -96
  108. package/dist/namespaces/assistants.js +0 -160
  109. package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
  110. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  111. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  112. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  113. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  114. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  115. package/dist/openapi_client/models/AvailableModels.js +0 -15
  116. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  117. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  118. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  119. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  120. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  121. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  122. package/dist/openapi_client/models/ConversationType.js +0 -13
  123. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  124. package/dist/openapi_client/models/CreateAssistantRequest.js +0 -1
  125. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  126. package/dist/openapi_client/models/CreateMessageRequest.js +0 -1
  127. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  128. package/dist/openapi_client/models/CreateTaskRequest.js +0 -1
  129. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  130. package/dist/openapi_client/models/FileVisibility.js +0 -9
  131. package/dist/openapi_client/models/TableAccessEntry.js +0 -1
  132. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  133. package/dist/openapi_client/models/TaskListResponse.js +0 -1
  134. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  135. package/dist/openapi_client/models/TaskMessageListResponse.js +0 -1
  136. package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
  137. package/dist/openapi_client/models/TaskMessageResponse.js +0 -1
  138. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  139. package/dist/openapi_client/models/TaskResponse.js +0 -1
  140. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  141. package/dist/openapi_client/models/TaskStatus.js +0 -17
  142. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  143. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  144. package/dist/openapi_client/models/ToolSet.js +0 -19
  145. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  146. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  147. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  148. package/dist/openapi_client/services/AssistantsService.js +0 -112
  149. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  150. package/dist/openapi_client/services/ConversationsService.js +0 -202
  151. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  152. package/dist/openapi_client/services/TasksService.js +0 -167
  153. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  154. /package/dist/openapi_client/models/{AssistantListResponse.js → AgentSurfaceResponse.js} +0 -0
  155. /package/dist/openapi_client/models/{AssistantResponse.js → MessageListResponse.js} +0 -0
  156. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageResponse.js} +0 -0
  157. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → SendMessageRequest.js} +0 -0
  158. /package/dist/openapi_client/models/{AvailableModelInfo.js → ToolCallContent.js} +0 -0
  159. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → ToolReturnContent.js} +0 -0
  160. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  161. /package/dist/openapi_client/models/{ConversationMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `lemma-sdk` is the headless TypeScript SDK for Lemma. Use `lemma-sdk` for the core client and shared helpers, and use `lemma-sdk/react` as the main app-building surface for hooks and auth primitives.
4
4
 
5
- `AuthGuard` intentionally stays in `lemma-sdk/react`. The product direction remains hooks-first and shell-agnostic, and the registry ships stock Lemma UI blocks when you want installable assistant, records, file, workflow, collaboration, or shell surfaces.
5
+ `AuthGuard` intentionally stays in `lemma-sdk/react`. The product direction remains hooks-first and shell-agnostic, and the registry ships stock Lemma UI blocks when you want installable agent conversation, records, file, workflow, collaboration, or shell surfaces.
6
6
 
7
7
  ## Install
8
8
 
@@ -43,7 +43,7 @@ const tables = await client.tables.list();
43
43
  const records = await client.records.list("tickets");
44
44
  ```
45
45
 
46
- Pod-scoped namespaces include `tables`, `records`, `assistants`, `agents`, `tasks`, `workflows`, `functions`, `files`, `desks`, `integrations`, `resources`, and `datastore`.
46
+ Pod-scoped namespaces include `tables`, `records`, `agents`, `conversations`, `workflows`, `functions`, `files`, `desks`, `integrations`, `resources`, and `datastore`. New runtime code should use agents plus conversations.
47
47
 
48
48
  Org and user surfaces include `users`, `organizations`, `pods`, `podMembers`, `podJoinRequests`, and `podSurfaces`.
49
49
 
@@ -77,9 +77,9 @@ import {
77
77
  | Tables | `useTables`, `useTable`, `useRecords`, `useRecord`, `useJoinedRecords`, `useRelatedRecords`, `useReverseRelatedRecords`, `useReferencingRecords`, `useDatastoreQuery`, `useRecordAggregates` | Stable | Build custom table browsers, details views, related-record views, raw SQL-backed reads, and chart/KPI queries. |
78
78
  | Record mutations | `useCreateRecord`, `useUpdateRecord`, `useDeleteRecord`, `useBulkRecords` | Stable | Create, update, delete, or bulk-delete rows from headless UI. Function-backed mutations via `createVia`/`updateVia` options. |
79
79
  | Record forms | `useRecordSchema`, `useRecordForm`, `useForeignKeyOptions`, `useSchemaForm` | Stable | Render schema-driven record forms, enum fields, and foreign-key selectors. `useRecordForm` is the canonical table-bound form hook; `useSchemaForm` remains available for raw JSON-schema flows. |
80
- | Files | `useFiles`, `useFile`, `useUploadFile`, `useUpdateFile`, `useDeleteFile`, `useCreateFolder`, `useFileSearch`, `useFileTree`, `useFilePreview`, `useGlobalSearch` | Stable | Browse datastore folders, mutate file state, search indexed files, load directory trees, preview content, and compose multi-source desk search. |
81
- | Assistant | `useConversations`, `useConversation`, `useConversationMessages`, `useAssistantRun`, `useAssistantSession`, `useAssistantRuntime`, `useAssistantController` | Stable except controller/runtime | Build custom chat, conversation lists, streaming output, and final-output views. |
82
- | Agents | `useAgentRun`, `useAgentRuns`, `useAgentInputSchema`, `useTaskSession` | Stable except raw session | Start agent tasks, submit follow-up input, read task history, and inspect input/output schemas. |
80
+ | Files | `useFiles`, `useFile`, `useUploadFile`, `useUpdateFile`, `useDeleteFile`, `useCreateFolder`, `useFileSearch`, `useFileTree`, `useFilePreview`, `useGlobalSearch` | Stable | Browse private or pod folders, mutate file state, search indexed files, load directory trees, preview content, and compose multi-source desk search. |
81
+ | Conversations | `useConversations`, `useConversation`, `useConversationMessages`, `useAssistantRun`, `useAssistantSession`, `useAssistantRuntime`, `useAssistantController` | Stable except controller/runtime | Build custom agent chat, conversation lists, streaming output, and final-answer views. Older assistant-named hooks target the agent conversation API internally. |
82
+ | Agents | `useAgentRun`, `useAgentRuns`, `useAgentInputSchema`, `useTaskSession` | Stable except raw session | Start one-turn agent conversations, submit follow-up input, read conversation history, and inspect input/output schemas. |
83
83
  | Workflows | `useWorkflowStart`, `useWorkflowRun`, `useWorkflowRuns`, `useWorkflowResume` | Stable | Start, poll, resume, cancel, retry, and inspect workflow runs. |
84
84
  | Workflow compatibility | `useFlowSession`, `useFlowRunHistory` | Deprecated naming | Kept for existing callers; prefer workflow-named hooks for new code. |
85
85
  | Functions | `useFunctionRun`, `useFunctionRuns`, `useFunctionSession` | Stable except raw session | Run functions, poll function runs, and list function history. |
@@ -147,7 +147,7 @@ function TicketList() {
147
147
  }
148
148
  ```
149
149
 
150
- Assistant final output:
150
+ Agent conversation final output:
151
151
 
152
152
  ```tsx
153
153
  import { useConversationMessages, useConversations } from "lemma-sdk/react";
@@ -155,7 +155,7 @@ import { useConversationMessages, useConversations } from "lemma-sdk/react";
155
155
  function SupportThread({ client }: { client: LemmaClient }) {
156
156
  const conversations = useConversations({
157
157
  client,
158
- assistantName: "support_assistant",
158
+ agentName: "support_agent",
159
159
  });
160
160
 
161
161
  const messages = useConversationMessages({
@@ -233,14 +233,14 @@ npx shadcn@latest add @lemma/lemma-comments
233
233
  npx shadcn@latest add @lemma/lemma-assistant-experience
234
234
  ```
235
235
 
236
- The registry currently ships 19 canonical blocks:
236
+ The registry currently ships 19 canonical blocks plus the shared `lemma-ui` primitive bundle:
237
237
 
238
238
  | Area | Items |
239
239
  | --- | --- |
240
240
  | Core operator blocks | `lemma-records-view`, `lemma-detail-panel`, `lemma-record-form`, `lemma-status-flow` |
241
241
  | Search, files, and pages | `lemma-global-search`, `lemma-breadcrumbs`, `lemma-file-browser`, `lemma-markdown-editor`, `lemma-page-tree`, `lemma-document-workspace` |
242
242
  | Collaboration and analytics | `lemma-comments`, `lemma-activity-feed`, `lemma-insights`, `lemma-action-surface`, `lemma-workflow-runner` |
243
- | Assistant and shell | `lemma-assistant-experience`, `lemma-members`, `lemma-notification-bell`, `lemma-user-menu` |
243
+ | Agent and shell | `lemma-assistant-experience`, `lemma-members`, `lemma-notification-bell`, `lemma-user-menu` |
244
244
 
245
245
  Registry blocks now install against a shared `lemma-ui` primitive layer that ships with this registry. Consumers no longer need a pre-existing app-local `@/components/ui/*` shadcn tree just to use Lemma blocks.
246
246
 
@@ -267,7 +267,7 @@ Core registry blocks:
267
267
  - `lemma-file-browser` and `lemma-document-workspace` for file browsing, editing, preview, and document-native workflows
268
268
  - `lemma-comments`, `lemma-activity-feed`, and `lemma-insights` for collaboration and reporting
269
269
  - `lemma-action-surface` and `lemma-workflow-runner` for long-running actions and workflow history
270
- - `lemma-assistant-experience`, `lemma-members`, `lemma-notification-bell`, and `lemma-user-menu` for assistant and shell surfaces
270
+ - `lemma-assistant-experience`, `lemma-members`, `lemma-notification-bell`, and `lemma-user-menu` for agent conversation and shell surfaces
271
271
 
272
272
  ### Block Defaults
273
273
 
@@ -302,11 +302,11 @@ For records workspaces, the split is:
302
302
  - optional file search with `searchMethod`, `href`, `onSelect`, and `openMode`
303
303
  - progressive table/file result groups, smooth loading/error source states, hidden empty sources, keyboard navigation, and built-in `cmd/ctrl+k` handling
304
304
  - `minQueryLength`, `debounceMs`, `appearance`, `density`, trigger label, and placeholder customization
305
- - assistant handoff by `assistantName`, with optional query/results message shaping and conversation routing
305
+ - agent handoff by `agentName`, with optional query/results message shaping and conversation routing
306
306
 
307
307
  Document blocks support:
308
308
 
309
- - Notion/Coda-style block documents through `lemma-document-workspace`, with ProseKit JSON content, page/modal modes, title and summary chrome, file/reference/assistant blocks, save state, metadata, backlinks, and assistant-context rails
309
+ - Notion/Coda-style block documents through `lemma-document-workspace`, with ProseKit JSON content, page/modal modes, title and summary chrome, file/reference/agent blocks, save state, metadata, backlinks, and agent-context rails
310
310
  - pod-file-native creation, reading, editing, and preview through one workspace, with folder targeting, title/summary setup, pod-file metadata, and `mode="page" | "modal"`
311
311
  - non-document file previews through the same workspace, including image, PDF, text, markdown, converted HTML, and download fallback behavior
312
312
  - records and attachments should pass pod file paths into `lemma-document-workspace`; records should not own document bodies directly
@@ -329,7 +329,7 @@ Navigation and file blocks support:
329
329
 
330
330
  - route, record, and file-path breadcrumb builders through `lemma-breadcrumbs`
331
331
  - native pod-file hierarchy navigation through `lemma-page-tree`
332
- - datastore folder navigation, upload, rename, move, folder creation, picker mode, and delete handling through `lemma-file-browser`
332
+ - private/pod datastore navigation, upload, rename, move, folder creation, picker mode, publish-to-pod, and delete handling through `lemma-file-browser`
333
333
  - write, preview, and split modes through `lemma-markdown-editor`
334
334
 
335
335
  Collaboration and analytics blocks support:
@@ -338,12 +338,12 @@ Collaboration and analytics blocks support:
338
338
  - unified audit and history timelines through `lemma-activity-feed`
339
339
  - dashboard-style stat cards and charts through `lemma-insights`
340
340
 
341
- Assistant blocks support:
341
+ Agent conversation blocks support:
342
342
 
343
- - assistant-name-first configuration through `assistantName`
344
- - shared `appearance` and `density` controls on the assistant experience surface
343
+ - agent-name-first configuration through `agentName` today; omit it to target the default pod agent conversation
344
+ - shared `appearance` and `density` controls on the conversation experience surface
345
345
  - `chromeStyle`, `statusPlacement`, `radius`, model picker, conversation list, and render overrides for deeper customization
346
- - bounded default heights for `page` and `side-panel` modes so the message viewport scrolls instead of stretching with content; pass `className="h-full min-h-0"` inside an explicit-height parent when you want a fill-layout assistant like inbox CRM
346
+ - bounded default heights for `page` and `side-panel` modes so the message viewport scrolls instead of stretching with content; pass `className="h-full min-h-0"` inside an explicit-height parent when you want a fill-layout agent conversation like inbox CRM
347
347
 
348
348
  ```tsx
349
349
  import { LemmaRecordsView } from "@/components/lemma/lemma-records-view";
@@ -393,8 +393,8 @@ import { LemmaGlobalSearch } from "@/components/lemma/lemma-global-search";
393
393
  },
394
394
  ]}
395
395
  files={{ enabled: true, openMode: "new-tab" }}
396
- assistant={{
397
- assistantName: "sales-copilot",
396
+ agent={{
397
+ agentName: "sales-copilot",
398
398
  label: "Ask CRM",
399
399
  resultLimit: 8,
400
400
  }}
@@ -412,7 +412,7 @@ import { LemmaGlobalSearch } from "@/components/lemma/lemma-global-search";
412
412
 
413
413
  <LemmaAssistantExperience
414
414
  client={client}
415
- assistantName="sales-copilot"
415
+ agentName="sales-copilot"
416
416
  />;
417
417
  ```
418
418
 
@@ -439,10 +439,16 @@ From `0.2.30` onward:
439
439
  - `lemma-sdk/react` should be treated as hooks plus auth primitives.
440
440
  - `AuthGuard` remains in `lemma-sdk/react`.
441
441
  - Stock UI should be installed from the shadcn registry.
442
- - Assistant UI source and CSS are no longer part of the React SDK internals.
443
- - `react-markdown` and `remark-gfm` are registry-block dependencies for assistant UI, not core SDK dependencies.
442
+ - Conversation UI source and CSS are no longer part of the React SDK internals.
443
+ - `react-markdown` and `remark-gfm` are registry-block dependencies for conversation UI, not core SDK dependencies.
444
444
  - New workflow code should prefer `useWorkflowRun`, `useWorkflowRuns`, and `useWorkflowResume` over the older `flow`-named hooks.
445
445
 
446
+ From `0.2.37` onward:
447
+
448
+ - Agent APIs are the runtime abstraction. `client.assistants` is removed; use `client.agents` for definitions and `client.conversations` for turns/messages.
449
+ - Conversations are pod-scoped under the agent conversation API; message sends stream one internal agent run until final output.
450
+ - File APIs are namespace-aware. Shared pod files are the default for backwards-compatible file workspaces; pass `namespace: "PRIVATE"` for personal file input/upload flows and `namespace: "POD"` when you want to be explicit. The live OpenAPI currently names the private namespace `PERSONAL`; the SDK accepts `PRIVATE` as the product-facing alias.
451
+
446
452
  ## Local Development
447
453
 
448
454
  From the root of this repository: