mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
feat: add adapter picker for imported agents
When importing a company, users can now choose the adapter type for each imported agent. Defaults to the current company CEO's adapter type (or claude_local if none). Includes an expandable "configure adapter" section per agent that renders the adapter-specific config fields. - Added adapterOverrides to import request schema and types - Built AdapterPickerList UI component in CompanyImport.tsx - Backend applies adapter overrides when creating/updating agents Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
cf8bfe8d8e
commit
1548b73b77
6 changed files with 243 additions and 11 deletions
|
|
@ -169,6 +169,13 @@ export const companyPortabilityPreviewSchema = z.object({
|
|||
|
||||
export type CompanyPortabilityPreview = z.infer<typeof companyPortabilityPreviewSchema>;
|
||||
|
||||
export const companyPortabilityImportSchema = companyPortabilityPreviewSchema;
|
||||
export const portabilityAdapterOverrideSchema = z.object({
|
||||
adapterType: z.string().min(1),
|
||||
adapterConfig: z.record(z.unknown()).optional(),
|
||||
});
|
||||
|
||||
export const companyPortabilityImportSchema = companyPortabilityPreviewSchema.extend({
|
||||
adapterOverrides: z.record(z.string().min(1), portabilityAdapterOverrideSchema).optional(),
|
||||
});
|
||||
|
||||
export type CompanyPortabilityImport = z.infer<typeof companyPortabilityImportSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue