mirror of
https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git
synced 2026-11-19 09:00:32 +00:00
* feat: add Amazon Q Developer platform support Add Amazon Q Developer as an install target so the skill can be installed with `uipro init --ai amazonq` and removed via `uipro uninstall`. Amazon Q loads every Markdown file under .amazonq/rules/ (recursively) as always-on chat context, so only the rendered rule file goes there (.amazonq/rules/ui-ux-pro-max.md). Data, scripts and the bundled sub-skills go to .amazonq/skills/ via dataPath, the same split copilot uses, so their reference docs are not pulled into every chat. - new platform config src/ui-ux-pro-max/templates/platforms/amazonq.json (synced to cli/assets via sync:assets) - register 'amazonq' in AIType, AI_TYPES, AI_FOLDERS, AI_TO_PLATFORM - detect .amazonq workspace directories and describe the platform - cover amazonq in the dry-run and template-script-paths e2e specs - document Amazon Q Developer in README and cli/README Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * docs: note that Amazon Q only auto-loads the rule file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
36 lines
1.6 KiB
TypeScript
36 lines
1.6 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
|
import { loadPlatformConfig, renderSkillFile } from '../../src/utils/template.js';
|
|
|
|
const cases = [
|
|
['claude', '.claude/skills/ui-ux-pro-max/scripts/search.py'],
|
|
['codex', '.agents/skills/ui-ux-pro-max/scripts/search.py'],
|
|
['copilot', '.github/prompts/ui-ux-pro-max/scripts/search.py'],
|
|
['kiro', '.kiro/steering/ui-ux-pro-max/scripts/search.py'],
|
|
['droid', '.factory/skills/ui-ux-pro-max/scripts/search.py'],
|
|
['zcode', '.zcode/skills/ui-ux-pro-max/scripts/search.py'],
|
|
['amazonq', '.amazonq/skills/ui-ux-pro-max/scripts/search.py'],
|
|
] as const;
|
|
const SEARCH_COMMAND_COUNT = 17;
|
|
|
|
function extractSearchScriptPaths(content: string): string[] {
|
|
return [...content.matchAll(/^python3\s+(\S*search\.py)\b/gm)].map(match => match[1]);
|
|
}
|
|
|
|
for (const [platform, localPath] of cases) {
|
|
test(`${platform} renders project-root and global script paths`, async () => {
|
|
const config = await loadPlatformConfig(platform);
|
|
|
|
const localContent = await renderSkillFile(config);
|
|
const localPaths = extractSearchScriptPaths(localContent);
|
|
expect(localPaths).toHaveLength(SEARCH_COMMAND_COUNT);
|
|
expect(new Set(localPaths)).toEqual(new Set([localPath]));
|
|
expect(localContent).not.toContain('{{SCRIPT_PATH}}');
|
|
|
|
const globalContent = await renderSkillFile(config, true);
|
|
const globalPaths = extractSearchScriptPaths(globalContent);
|
|
expect(globalPaths).toHaveLength(SEARCH_COMMAND_COUNT);
|
|
expect(new Set(globalPaths)).toEqual(new Set([`~/${localPath}`]));
|
|
expect(globalContent).not.toContain('{{SCRIPT_PATH}}');
|
|
});
|
|
}
|