Files
wehub-resource-sync 070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:00:47 +08:00

25 lines
881 B
TypeScript

import assert from 'node:assert/strict';
import test from 'node:test';
import { derivePrompt } from './example.ts';
test('example plugin manifests prefer top-level skill example_prompt', () => {
const prompt = derivePrompt({
description: 'A long description that should not become the plugin use-case query.',
example_prompt: 'Build a polished deck from the authored example prompt.',
});
assert.equal(prompt, 'Build a polished deck from the authored example prompt.');
});
test('example plugin manifests fall back to od.example_prompt before description snippets', () => {
const prompt = derivePrompt({
description: 'A long description that should not become the plugin use-case query.',
od: {
example_prompt: 'Create a focused artifact from od metadata.',
},
});
assert.equal(prompt, 'Create a focused artifact from od metadata.');
});