File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 </template >
1717
1818 <div v-if =" isOpen" class =" flex flex-col gap-4 p-4 border-t border-gray-200 dark:border-gray-700" >
19- <!-- Payload URL -->
2019 <div class =" space-y-2" >
2120 <label class =" block text-sm font-medium text-gray-700 dark:text-gray-300" >
2221 Webhook URL
2322 </label >
2423 <div class =" flex gap-2" >
2524 <UInput :model-value =" payloadUrl " readonly size="md" class="flex-1 font-mono text-xs" />
2625 <UTooltip :text =" copyPayloadState === ' copied' ? ' Copied!' : ' Copy URL' " >
27- <UButton
28- :icon =" copyPayloadState === ' copied' ? ' i-lucide-check' : ' i-lucide-copy' "
29- color="neutral"
30- variant="soft"
31- @click =" handleCopyPayload " />
26+ <UButton :icon =" copyPayloadState === ' copied' ? ' i-lucide-check' : ' i-lucide-copy' "
27+ color="neutral" variant="soft" @click =" handleCopyPayload " />
3228 </UTooltip >
3329 </div >
3430 <p class =" text-xs text-gray-500 dark:text-gray-400" >
3531 Use this URL to capture requests.
3632 </p >
3733 </div >
3834
39- <!-- View API URL -->
4035 <div class =" space-y-2" >
4136 <label class =" block text-sm font-medium text-gray-700 dark:text-gray-300" >
4237 Automation API URL
4338 </label >
4439 <div class =" flex gap-2" >
4540 <UInput :model-value =" viewUrl " readonly size="md" class="flex-1 font-mono text-xs" />
4641 <UTooltip :text =" copyViewState === ' copied' ? ' Copied!' : ' Copy URL' " >
47- <UButton
48- :icon =" copyViewState === ' copied' ? ' i-lucide-check' : ' i-lucide-copy' "
49- color="neutral"
50- variant="soft"
51- @click =" handleCopyView " />
42+ <UButton :icon =" copyViewState === ' copied' ? ' i-lucide-check' : ' i-lucide-copy' " color="neutral"
43+ variant="soft" @click =" handleCopyView " />
5244 </UTooltip >
5345 </div >
5446 <p class =" text-xs text-gray-500 dark:text-gray-400" >
55- Read-only API for automation/LLMs. Returns all requests with bodies in JSON format.
47+ Read-only API for automation/LLMs.
5648 </p >
5749 </div >
5850 </div >
Original file line number Diff line number Diff line change 3232 </div >
3333 </div >
3434 <div class =" grid gap-6 px-6 pb-6 lg:p-6" >
35- <ApiUrlsCard :token-id =" tokenId " />
35+ <ApiUrlsCard v-if = " llmEndpointEnabled " :token-id =" tokenId " />
3636 <ResponseSettingsCard :token-id =" tokenId " />
3737 <RawRequestCard :request =" selectedRequest " :request-number =" selectedRequestNumber " :token-id =" tokenId " />
3838 <RequestDetailsCard :request =" selectedRequest " :request-number =" selectedRequestNumber "
@@ -78,6 +78,8 @@ const { data: requests } = requestsStore.useRequestsList(tokenId)
7878const { mutateAsync : deleteRequestMutation } = requestsStore .useDeleteRequest ()
7979const { mutateAsync : deleteAllRequestsMutation } = requestsStore .useDeleteAllRequests ()
8080
81+ const llmEndpointEnabled = useRuntimeConfig ().public ?.llmEndpointEnabled === true
82+
8183const selectedRequestId = ref <string | null >(null )
8284const incomingIds = ref <Set <string >>(new Set ())
8385const copyState = ref <' idle' | ' copied' >(' idle' )
Original file line number Diff line number Diff line change 11import tailwindcss from "@tailwindcss/vite" ;
22
33const sessionRestoreEnabled = process . env . SESSION_RESTORE_ENABLED !== 'false'
4+ const llmEndpointEnabled = process . env . ENABLE_LLM_ENDPOINT === 'true'
45
56export default defineNuxtConfig ( {
67 compatibilityDate : '2025-07-15' ,
@@ -35,8 +36,10 @@ export default defineNuxtConfig({
3536 } ,
3637 runtimeConfig : {
3738 sessionRestoreEnabled,
39+ llmEndpointEnabled,
3840 public : {
3941 sessionRestoreEnabled,
42+ llmEndpointEnabled,
4043 } ,
4144 } ,
4245
Original file line number Diff line number Diff line change 1919 },
2020 "dependencies" : {
2121 "@iconify-json/lucide" : " ^1.2.79" ,
22- "@nuxt/eslint" : " 1.9 .0" ,
23- "@nuxt/test-utils" : " 3.19.2 " ,
24- "@nuxt/ui" : " 4.0 .1" ,
22+ "@nuxt/eslint" : " 1.11 .0" ,
23+ "@nuxt/test-utils" : " 3.21.0 " ,
24+ "@nuxt/ui" : " 4.2 .1" ,
2525 "@tailwindcss/postcss" : " ^4.1.17" ,
2626 "@tailwindcss/vite" : " ^4.1.17" ,
2727 "@tanstack/vue-query" : " ^5.92.1" ,
2828 "@types/jsonwebtoken" : " ^9.0.10" ,
2929 "better-sqlite3" : " ^12.5.0" ,
30- "drizzle-orm" : " ^0.44.7 " ,
30+ "drizzle-orm" : " ^0.45.0 " ,
3131 "eslint" : " ^9.39.1" ,
3232 "h3" : " ^1.15.4" ,
3333 "jsonwebtoken" : " ^9.0.3" ,
34- "marked" : " ^16.4.2 " ,
34+ "marked" : " ^17.0.1 " ,
3535 "nuxt" : " ^4.2.1" ,
3636 "shiki" : " ^3.19.0" ,
3737 "tailwindcss" : " ^4.1.17" ,
4646 "@types/node" : " ^24.10.1" ,
4747 "drizzle-kit" : " ^0.31.8" ,
4848 "tsx" : " ^4.21.0" ,
49- "vitest" : " ^3.2.4 "
49+ "vitest" : " ^4.0.15 "
5050 }
5151}
You can’t perform that action at this time.
0 commit comments