mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 10:50:38 +09:00
fix: hide instructions file and show advanced fields in import adapter config
- Added hideInstructionsFile prop to AdapterConfigFieldsProps - All adapter config-fields now conditionally hide the instructions file field when hideInstructionsFile is set (used during import since the AGENTS.md is automatically set as promptTemplate) - Import adapter config panel now renders ClaudeLocalAdvancedFields (Chrome, skip permissions, max turns) when claude_local is selected Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
1548b73b77
commit
0763e2eb20
6 changed files with 75 additions and 48 deletions
|
|
@ -27,6 +27,7 @@ import {
|
|||
import { Field, adapterLabels } from "../components/agent-config-primitives";
|
||||
import { defaultCreateValues } from "../components/agent-config-defaults";
|
||||
import { getUIAdapter } from "../adapters";
|
||||
import { ClaudeLocalAdvancedFields } from "../adapters/claude-local/config-fields";
|
||||
import type { CreateConfigValues } from "@paperclipai/adapter-utils";
|
||||
import {
|
||||
type FileTreeNode,
|
||||
|
|
@ -542,7 +543,21 @@ function AdapterPickerList({
|
|||
eff={() => "" as any}
|
||||
mark={() => {}}
|
||||
models={[]}
|
||||
hideInstructionsFile
|
||||
/>
|
||||
{selectedType === "claude_local" && (
|
||||
<ClaudeLocalAdvancedFields
|
||||
mode="create"
|
||||
isCreate
|
||||
adapterType={selectedType}
|
||||
values={vals}
|
||||
set={(patch) => onChangeConfig(agent.slug, patch)}
|
||||
config={{}}
|
||||
eff={() => "" as any}
|
||||
mark={() => {}}
|
||||
models={[]}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue