Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

overall improvements

Hugo Richard21b022b36536
diff --git a/apps/chat/app/components/InstallBotCard.vue b/apps/chat/app/components/InstallBotCard.vue
index 038396f..5926b43 100644
--- a/apps/chat/app/components/InstallBotCard.vue
+++ b/apps/chat/app/components/InstallBotCard.vue
@@ -77,7 +77,7 @@ function onMouseLeave() {
}"
/>
- <div class="relative">
+ <div class="relative z-[1]">
<div class="flex items-center justify-between mb-1.5">
<p class="text-xs font-medium text-highlighted leading-tight">
Install our bots
@@ -165,6 +165,6 @@ function onMouseLeave() {
inset: 0;
pointer-events: none;
transition: opacity 0.3s ease;
- z-index: 2;
+ z-index: 0;
}
</style>
diff --git a/apps/chat/app/content/docs/getting-started.md b/apps/chat/app/content/docs/getting-started.md
index 71e5bfd..9f7680d 100644
--- a/apps/chat/app/content/docs/getting-started.md
+++ b/apps/chat/app/content/docs/getting-started.md
@@ -84,13 +84,39 @@ For more details on the bot behavior, see the [GitHub Bot documentation](/admin/
## First Launch
-```bash
-# Install dependencies
+Install dependencies:
+
+::code-group
+```bash [bun]
bun install
+```
+```bash [pnpm]
+pnpm install
+```
+```bash [yarn]
+yarn install
+```
+```bash [npm]
+npm install
+```
+::
+
+Start the development server:
-# Start the development server
+::code-group
+```bash [bun]
bun run dev
```
+```bash [pnpm]
+pnpm dev
+```
+```bash [yarn]
+yarn dev
+```
+```bash [npm]
+npm run dev
+```
+::
The app will be available at `http://localhost:3000`. Sign in with GitHub using one of the admin emails or usernames defined in `NUXT_ADMIN_USERS` to access the admin panel.
diff --git a/apps/chat/app/content/docs/sdk.md b/apps/chat/app/content/docs/sdk.md
index f6e723b..7772ac5 100644
--- a/apps/chat/app/content/docs/sdk.md
+++ b/apps/chat/app/content/docs/sdk.md
@@ -4,11 +4,20 @@ The [`@savoir/sdk`](https://github.com/vercel-labs/savoir/tree/main/packages/sdk
## Installation
-```bash
-npm install @savoir/sdk
-# or
+::code-group
+```bash [bun]
bun add @savoir/sdk
```
+```bash [pnpm]
+pnpm add @savoir/sdk
+```
+```bash [yarn]
+yarn add @savoir/sdk
+```
+```bash [npm]
+npm install @savoir/sdk
+```
+::
## Configuration
diff --git a/apps/chat/app/pages/admin/index.vue b/apps/chat/app/pages/admin/index.vue
index 339c086..d3f7824 100644
--- a/apps/chat/app/pages/admin/index.vue
+++ b/apps/chat/app/pages/admin/index.vue
@@ -231,6 +231,13 @@ const hasSources = computed(() => (sources.value?.github?.count || 0) + (sources
class="flex flex-col gap-4 mb-6"
>
<div class="flex items-center gap-2">
+ <UButton
+ icon="i-lucide-plus"
+ size="xs"
+ to="/admin/new"
+ >
+ Add Source
+ </UButton>
<UButton
icon="i-lucide-refresh-cw"
color="neutral"
@@ -241,23 +248,16 @@ const hasSources = computed(() => (sources.value?.github?.count || 0) + (sources
>
Sync All
</UButton>
- <UButton
- icon="i-lucide-plus"
- size="xs"
- to="/admin/new"
- >
- Add Source
- </UButton>
<UButton
v-if="sources?.snapshotRepoUrl"
- icon="i-lucide-external-link"
+ icon="i-simple-icons-github"
color="neutral"
variant="ghost"
size="xs"
:to="sources.snapshotRepoUrl"
target="_blank"
>
- View Repository
+ Open Repository
</UButton>
<span v-if="lastSyncAgo && !needsSync" class="text-xs text-muted ml-2">
Last synced {{ lastSyncAgo }}
diff --git a/apps/chat/app/pages/admin/sandbox.vue b/apps/chat/app/pages/admin/sandbox.vue
index 22e47e9..ec7b07f 100644
--- a/apps/chat/app/pages/admin/sandbox.vue
+++ b/apps/chat/app/pages/admin/sandbox.vue
@@ -12,6 +12,8 @@ const {
syncNow,
} = useSnapshotSync()
+const { data: sources } = useLazyFetch('/api/sources')
+
const createdAgo = computed(() => {
if (!status.value?.latestCreatedAt) return null
return formatDistanceToNow(status.value.latestCreatedAt, { addSuffix: true })
@@ -51,6 +53,18 @@ const isInitialLoading = computed(() => status.value === null)
<p class="text-xs text-muted font-mono">
{{ status.currentSnapshotId }}
</p>
+ <UButton
+ v-if="sources?.snapshotRepoUrl"
+ icon="i-simple-icons-github"
+ color="neutral"
+ variant="link"
+ size="xs"
+ class="-ml-1.5"
+ :to="sources.snapshotRepoUrl"
+ target="_blank"
+ >
+ Open Repository
+ </UButton>
</div>
<div v-else class="text-sm text-muted">
No snapshot configured. Sync to the latest snapshot to get started.