Harden provider security and build dependencies
This commit is contained in:
1 parent
67d2cf5649
commit
abe578b1a0
10 files changed
+783
-285
No files matched your search
@@ -254,7 +254,7 @@ function CompanyStep({ draft, onChange, onBack, onNext }: StepProps) {
|
||||
</Field>
|
||||
<Field label="Workspace path (optional)">
|
||||
<div className="row" style={{ gap: 6 }}>
|
||||
<input className="input" value={draft.workspacePath} onChange={(event) => onChange({ workspacePath: event.target.value })} placeholder="Choose a folder for agent artifacts" />
|
||||
<input className="input" value={draft.workspacePath} onChange={(event) => onChange({ workspacePath: event.target.value })} />
|
||||
<Button tone="ghost" onClick={chooseWorkspace}><Icon name="folder" size={13} /> Choose</Button>
|
||||
</div>
|
||||
</Field>
|
||||
|
||||
@@ -127,7 +127,6 @@ function ProviderCredentialFields({
|
||||
<input
|
||||
className="input"
|
||||
value={draft.providerBaseUrl}
|
||||
placeholder={selected.customEndpoint === "openai" ? "https://host/v1" : "https://host"}
|
||||
onChange={(event) => onChange({ providerBaseUrl: event.target.value })}
|
||||
/>
|
||||
</Field>
|
||||
@@ -174,7 +173,6 @@ function ProviderCredentialFields({
|
||||
<input
|
||||
className="input"
|
||||
value={draft.providerModel}
|
||||
placeholder={modelPlaceholder(live, isOAuthLike, loading)}
|
||||
onChange={(event) => onChange({ providerModel: event.target.value })}
|
||||
/>
|
||||
)}
|
||||
@@ -193,12 +191,6 @@ function Actions({ onBack, onNext }: { onBack: () => void; onNext: () => void })
|
||||
);
|
||||
}
|
||||
|
||||
function modelPlaceholder(live: boolean, isOAuthLike: boolean, loading: boolean): string {
|
||||
if (!live) return "Enter the model id";
|
||||
if (loading || isOAuthLike) return "Loading...";
|
||||
return "Click Get models, or type a model id";
|
||||
}
|
||||
|
||||
function authBadge(authType: string): string {
|
||||
if (authType === "api_key") return "API key";
|
||||
if (authType === "oauth_pkce") return "OAuth";
|
||||
|
||||
@@ -150,7 +150,6 @@ function ConversationHeader({
|
||||
className="input"
|
||||
autoFocus
|
||||
aria-label="Search messages"
|
||||
placeholder="Search messages"
|
||||
value={query}
|
||||
onChange={(event) => onQueryChange(event.target.value)}
|
||||
onKeyDown={(event) => { if (event.key === "Escape") toggleSearch(); }}
|
||||
|
||||
@@ -83,7 +83,6 @@ function CompatFieldsForm({ entry, provider }: { entry: ProviderCatalogEntry; pr
|
||||
className="input"
|
||||
name="cloudBaseUrl"
|
||||
value={baseUrl}
|
||||
placeholder={entry.customEndpoint === "openai" ? "https://host/v1" : "https://host"}
|
||||
onChange={(event) => setBaseUrl(event.target.value)}
|
||||
/>
|
||||
</Field>
|
||||
|
||||
Reference in new issue
Block a user