Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export function createSystemPromptHandler(

let promptName: string
if (discardEnabled && extractEnabled) {
promptName = "user/system/system-prompt-both"
promptName = "system/system-prompt-both"
} else if (discardEnabled) {
promptName = "user/system/system-prompt-discard"
promptName = "system/system-prompt-discard"
} else if (extractEnabled) {
promptName = "user/system/system-prompt-extract"
promptName = "system/system-prompt-extract"
} else {
return
}
Expand Down
6 changes: 3 additions & 3 deletions lib/messages/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const getNudgeString = (config: PluginConfig): string => {
const extractEnabled = config.tools.extract.enabled

if (discardEnabled && extractEnabled) {
return loadPrompt(`user/nudge/nudge-both`)
return loadPrompt(`nudge/nudge-both`)
} else if (discardEnabled) {
return loadPrompt(`user/nudge/nudge-discard`)
return loadPrompt(`nudge/nudge-discard`)
} else if (extractEnabled) {
return loadPrompt(`user/nudge/nudge-extract`)
return loadPrompt(`nudge/nudge-extract`)
}
return ""
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"clean": "rm -rf dist",
"build": "npm run clean && tsc && cp -r lib/prompts/*.txt lib/prompts/user dist/lib/prompts/",
"build": "npm run clean && tsc && cp -r lib/prompts/*.txt lib/prompts/system lib/prompts/nudge dist/lib/prompts/",
"postbuild": "rm -rf dist/logs",
"prepublishOnly": "npm run build",
"dev": "opencode plugin dev",
Expand Down