forked from farhoodlabs/paperclip
chore: mark bootstrapPromptTemplate as deprecated
Add @deprecated JSDoc and inline comments to bootstrapPromptTemplate references in agent-instructions and company-portability services. This field is superseded by the managed instructions bundle system. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -9,6 +9,7 @@ const ROOT_KEY = "instructionsRootPath";
|
|||||||
const ENTRY_KEY = "instructionsEntryFile";
|
const ENTRY_KEY = "instructionsEntryFile";
|
||||||
const FILE_KEY = "instructionsFilePath";
|
const FILE_KEY = "instructionsFilePath";
|
||||||
const PROMPT_KEY = "promptTemplate";
|
const PROMPT_KEY = "promptTemplate";
|
||||||
|
/** @deprecated Use the managed instructions bundle system instead. */
|
||||||
const BOOTSTRAP_PROMPT_KEY = "bootstrapPromptTemplate";
|
const BOOTSTRAP_PROMPT_KEY = "bootstrapPromptTemplate";
|
||||||
const LEGACY_PROMPT_TEMPLATE_PATH = "promptTemplate.legacy.md";
|
const LEGACY_PROMPT_TEMPLATE_PATH = "promptTemplate.legacy.md";
|
||||||
const IGNORED_INSTRUCTIONS_FILE_NAMES = new Set([".DS_Store", "Thumbs.db", "Desktop.ini"]);
|
const IGNORED_INSTRUCTIONS_FILE_NAMES = new Set([".DS_Store", "Thumbs.db", "Desktop.ini"]);
|
||||||
|
|||||||
@@ -1475,7 +1475,7 @@ function normalizePortableConfig(
|
|||||||
key === "instructionsRootPath" ||
|
key === "instructionsRootPath" ||
|
||||||
key === "instructionsEntryFile" ||
|
key === "instructionsEntryFile" ||
|
||||||
key === "promptTemplate" ||
|
key === "promptTemplate" ||
|
||||||
key === "bootstrapPromptTemplate" ||
|
key === "bootstrapPromptTemplate" || // deprecated — kept for backward compat
|
||||||
key === "paperclipSkillSync"
|
key === "paperclipSkillSync"
|
||||||
) continue;
|
) continue;
|
||||||
if (key === "env") continue;
|
if (key === "env") continue;
|
||||||
@@ -3895,7 +3895,7 @@ export function companyPortabilityService(db: Db, storage?: StorageService) {
|
|||||||
desiredSkills,
|
desiredSkills,
|
||||||
);
|
);
|
||||||
delete adapterConfigWithSkills.promptTemplate;
|
delete adapterConfigWithSkills.promptTemplate;
|
||||||
delete adapterConfigWithSkills.bootstrapPromptTemplate;
|
delete adapterConfigWithSkills.bootstrapPromptTemplate; // deprecated
|
||||||
delete adapterConfigWithSkills.instructionsFilePath;
|
delete adapterConfigWithSkills.instructionsFilePath;
|
||||||
delete adapterConfigWithSkills.instructionsBundleMode;
|
delete adapterConfigWithSkills.instructionsBundleMode;
|
||||||
delete adapterConfigWithSkills.instructionsRootPath;
|
delete adapterConfigWithSkills.instructionsRootPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user