Skip to content

Commit 890fe91

Browse files
committed
feat: add .continue/configs as a third config directory
Add support for loading local profiles from .continue/configs/ alongside the existing .continue/agents/ and .continue/assistants/ directories.
1 parent 16a540c commit 890fe91

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

core/config/ConfigHandler.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,12 @@ export class ConfigHandler {
368368
{ ...options, fileExtType: "yaml" },
369369
"agents",
370370
);
371-
const profiles = [...assistantFiles, ...agentFiles].map((assistant) => {
371+
const configFiles = await getAllDotContinueDefinitionFiles(
372+
this.ide,
373+
{ ...options, fileExtType: "yaml" },
374+
"configs",
375+
);
376+
const profiles = [...assistantFiles, ...agentFiles, ...configFiles].map((assistant) => {
372377
return new LocalProfileLoader(
373378
this.ide,
374379
this.controlPlaneClient,

core/config/loadLocalAssistants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function isContinueConfigRelatedUri(uri: string): boolean {
2323
(uri.endsWith(".yaml") ||
2424
uri.endsWith(".yml") ||
2525
uri.endsWith(".json"))) ||
26-
[...BLOCK_TYPES, "agents", "assistants"].some((blockType) =>
26+
[...BLOCK_TYPES, "agents", "assistants", "configs"].some((blockType) =>
2727
uri.includes(`.continue/${blockType}`),
2828
)
2929
);
@@ -38,7 +38,8 @@ export function isContinueAgentConfigFile(uri: string): boolean {
3838
const normalizedUri = URI.normalize(uri);
3939
return (
4040
normalizedUri.includes(`/.continue/agents/`) ||
41-
normalizedUri.includes(`/.continue/assistants/`)
41+
normalizedUri.includes(`/.continue/assistants/`) ||
42+
normalizedUri.includes(`/.continue/configs/`)
4243
);
4344
}
4445

0 commit comments

Comments
 (0)