@larkup/workspace-app 0.2.0 → 0.2.1

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": "@larkup/workspace-app",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Canonical Larkup chat, data and settings pages with host adapters",
6
6
  "files": [
@@ -534,7 +534,7 @@
534
534
  "dependencies": {
535
535
  "@ai-sdk/react": "4.0.136",
536
536
  "@base-ui/react": "^1.5.0",
537
- "@larkup/core": "^0.8.0",
537
+ "@larkup/core": "^0.8.1",
538
538
  "ai": "7.0.133",
539
539
  "class-variance-authority": "^0.7.1",
540
540
  "clsx": "^2.1.1",
@@ -557,7 +557,7 @@
557
557
  "@larkup/sandbox": "^0.1.8",
558
558
  "next": "16.3.8",
559
559
  "@larkup/integrations": "0.2.1",
560
- "@larkup/tool-doc-editor": "0.3.0",
560
+ "@larkup/tool-doc-editor": "0.3.1",
561
561
  "@larkup/workspace-ui": "0.2.0"
562
562
  },
563
563
  "peerDependencies": {
@@ -936,14 +936,6 @@ function ChatWorkspaceInner({ chatId }: { chatId?: string }) {
936
936
  const ready = status?.ready ?? false;
937
937
  const selectedModelData = status?.availableModels?.find((m) => m.id === selectedModel);
938
938
 
939
- if (statusLoading) {
940
- return (
941
- <div className="flex flex-1 items-center justify-center">
942
- <Loader2 className="size-6 animate-spin text-muted-foreground" />
943
- </div>
944
- );
945
- }
946
-
947
939
  return (
948
940
  <div
949
941
  className={cn(
@@ -1284,18 +1276,28 @@ function ChatWorkspaceInner({ chatId }: { chatId?: string }) {
1284
1276
  {!ready ? (
1285
1277
  <div className="flex flex-col items-center justify-center gap-3 pt-[18vh] text-center">
1286
1278
  <div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-white border text-muted-foreground">
1287
- <MessageCircle className="size-7" />
1279
+ {statusLoading ? (
1280
+ <Loader2 className="size-6 animate-spin" />
1281
+ ) : (
1282
+ <MessageCircle className="size-7" />
1283
+ )}
1288
1284
  </div>
1289
1285
  <h1 className="text-xl font-semibold tracking-tight text-foreground">
1290
- {statusError ? 'Chat temporarily unavailable' : 'Setup Required'}
1286
+ {statusLoading
1287
+ ? 'Preparing your workspace'
1288
+ : statusError
1289
+ ? 'Chat temporarily unavailable'
1290
+ : 'Setup Required'}
1291
1291
  </h1>
1292
1292
  <p className="max-w-md text-sm leading-relaxed text-muted-foreground mb-2">
1293
- {statusError
1294
- ? 'Chat services are temporarily unavailable. Larkup will retry automatically.'
1295
- : status?.blockers?.join(' ') ||
1296
- 'Connect a chat model in Settings to start chatting.'}
1293
+ {statusLoading
1294
+ ? 'Loading your chat configuration and available models…'
1295
+ : statusError
1296
+ ? 'Chat services are temporarily unavailable. Larkup will retry automatically.'
1297
+ : status?.blockers?.join(' ') ||
1298
+ 'Connect a chat model in Settings to start chatting.'}
1297
1299
  </p>
1298
- {!statusError && (
1300
+ {!statusLoading && !statusError && (
1299
1301
  <a
1300
1302
  href={
1301
1303
  status?.blockers?.some((b) => b.includes('API Key') || b.includes('Settings'))