Skip to content

Commit e838719

Browse files
committed
refactor(plugins): flatten builtin template folders
1 parent 6abbd58 commit e838719

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/prompt-templates/builtins/comment-polish/index.mjs renamed to plugins/prompt-templates/comment-polish/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pluginOwnership } from '../../ownership.mjs';
1+
import { pluginOwnership } from '../ownership.mjs';
22

33
export function buildBuiltinCommentPolishTemplate(t) {
44
const tr = (key, fallback, params = null) => (typeof t === 'function' ? t(key, params) : fallback);

plugins/prompt-templates/overview.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
persistPromptTemplatesToStorage,
33
readPromptTemplatesFromStorage
44
} from './storage.mjs';
5-
import { buildBuiltinCommentPolishTemplate } from './builtins/comment-polish/index.mjs';
6-
import { buildBuiltinRuleAckTemplate } from './builtins/rule-ack/index.mjs';
5+
import { buildBuiltinCommentPolishTemplate } from './comment-polish/index.mjs';
6+
import { buildBuiltinRuleAckTemplate } from './rule-ack/index.mjs';
77

88
function ensureBuiltinTemplates(rawList, builtins) {
99
const list = Array.isArray(rawList) ? rawList.filter(Boolean) : [];

plugins/prompt-templates/builtins/rule-ack/index.mjs renamed to plugins/prompt-templates/rule-ack/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pluginOwnership } from '../../ownership.mjs';
1+
import { pluginOwnership } from '../ownership.mjs';
22

33
export function buildBuiltinRuleAckTemplate(t) {
44
const tr = (key, fallback, params = null) => (typeof t === 'function' ? t(key, params) : fallback);

0 commit comments

Comments
 (0)