add Kong Konnect gateway support with Settings UI

This commit is contained in:
2026-04-14 11:22:33 -03:00
parent c8a764c868
commit 0d0950d97d
8 changed files with 152 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import { Panel, SplitPane, LogRenderer } from 'soleprint-ui'
import NotificationCard from '../components/NotificationCard.vue'
import HandoverBrief from '../components/HandoverBrief.vue'
import { useAgentEvents } from '../composables/useAgentEvents'
import { apiFetch } from '../config'
const flights = ref<any[]>([])
const selectedFlight = ref('')
@@ -29,7 +30,7 @@ watch(scenarioVersion, () => {
})
async function loadFlights() {
const res = await fetch('/scenarios/data/flights')
const res = await apiFetch('/scenarios/data/flights')
const data = await res.json()
flights.value = data.map((f: any) => ({
id: f.flight_id,
@@ -44,7 +45,7 @@ async function runFce() {
notification.value = null
if (!showInternals.value) showInternals.value = true
const res = await fetch('/agents/fce', {
const res = await apiFetch('/agents/fce', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ flight_id: selectedFlight.value }),
@@ -52,7 +53,7 @@ async function runFce() {
const { run_id } = await res.json()
const poll = setInterval(async () => {
const r = await fetch(`/agents/runs/${run_id}`)
const r = await apiFetch(`/agents/runs/${run_id}`)
const data = await r.json()
if (data.status === 'completed') {
clearInterval(poll)
@@ -70,7 +71,7 @@ async function runHandover() {
handoverBrief.value = null
if (!showInternals.value) showInternals.value = true
const res = await fetch('/agents/handover', {
const res = await apiFetch('/agents/handover', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({}),
@@ -78,7 +79,7 @@ async function runHandover() {
const { run_id } = await res.json()
const poll = setInterval(async () => {
const r = await fetch(`/agents/runs/${run_id}`)
const r = await apiFetch(`/agents/runs/${run_id}`)
const data = await r.json()
if (data.status === 'completed') {
clearInterval(poll)