mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-22 02:56:52 +03:00
Add concept world catalog and review workflow
AI-assisted: prepared by Codex at Paul's request.
This commit is contained in:
@@ -676,17 +676,19 @@ describe('replacePlaceholders', () => {
|
||||
});
|
||||
|
||||
describe('replaceScriptProviderMarker', () => {
|
||||
test('renders only the explicit command-prefix declaration', () => {
|
||||
test('renders only the explicit provider declarations', () => {
|
||||
const source = [
|
||||
"export const IMPECCABLE_COMMAND_PREFIX = '/'; // @impeccable-provider-command-prefix",
|
||||
"export const IMPECCABLE_PROVIDER_ID = 'source'; // @impeccable-provider-id",
|
||||
'const regex = /impeccable\\b/gi;',
|
||||
"const runtime = '/src/lib/impeccable/__runtime.js';",
|
||||
"const text = 'Run /impeccable audit';",
|
||||
].join('\n');
|
||||
|
||||
const result = replaceScriptProviderMarker(source, 'codex');
|
||||
const result = replaceScriptProviderMarker(source, 'codex', 'agents');
|
||||
|
||||
expect(result).toContain('export const IMPECCABLE_COMMAND_PREFIX = "$";');
|
||||
expect(result).toContain('export const IMPECCABLE_PROVIDER_ID = "agents";');
|
||||
expect(result).toContain('const regex = /impeccable\\b/gi;');
|
||||
expect(result).toContain("const runtime = '/src/lib/impeccable/__runtime.js';");
|
||||
expect(result).toContain("const text = 'Run /impeccable audit';");
|
||||
|
||||
Reference in New Issue
Block a user