Skip to content
  1. Home
  2. workspace
Checking…
Public view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

app/src/app/(app)/settings/endpoints.tsx

1"use client";
2import { useState } from "react";
3type R = Record<string, { value: string; source: string }>;
4export function Endpoints({ initial }: { initial: R }) {
5 const keys = Object.keys(initial); const [v, setV] = useState<Record<string, string>>(Object.fromEntries(keys.map(k => [k, initial[k].source === "settings" || initial[k].source === "env" ? initial[k].value : ""]))); const [msg, setMsg] = useState(""); const [errs, setErrs] = useState<Record<string, string>>({});
6 return <form className="space-y-3" onSubmit={async e => { e.preventDefault(); setMsg(""); const values = Object.fromEntries(keys.filter(k => initial[k].source !== "env").map(k => [k, v[k]])); const r = await fetch("/api/config", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ values }) }); const j = await r.json().catch(() => ({})); setErrs(j.errors ?? {}); setMsg(r.ok ? "Saved. Takes effect on the next request." : j.error ?? "Failed"); }}>
7 <p className="text-xs text-muted">Leave a field empty to derive it from the address you are visiting. Nothing is hard-coded to a domain, so migrating domains means editing these values (or setting environment variables) and replacing the certificate. Environment values win and are read-only here.</p>
8 {keys.map(k => <div key={k}><label className="flex flex-wrap items-center justify-between gap-2 text-sm font-medium" htmlFor={`cfg-${k}`}><span className="mono text-xs">{k}</span><span className="text-xs font-normal text-muted">{initial[k].source}{initial[k].source !== "settings" && initial[k].value ? ` · ${initial[k].value}` : ""}</span></label>
9 <input id={`cfg-${k}`} className="input mt-1" value={v[k]} disabled={initial[k].source === "env"} onChange={e => setV({ ...v, [k]: e.target.value })} placeholder={initial[k].source === "derived" ? initial[k].value : ""} />{errs[k] && <div role="alert" className="text-xs text-[var(--err)]">{errs[k]}</div>}</div>)}
10 <button className="btn btn-primary">Save endpoints</button><div role="status" className="text-sm text-muted">{msg}</div></form>;
11}
12

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 0eebc42 on master.

Approval requests

None pending.