mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-19 02:13:58 +00:00
* feat: update agent adapters for 2026 compatibility - Add new skill-translator module for cross-agent skill translation - Update Cursor adapter to use .cursor/rules/*.mdc format with YAML frontmatter - Update Windsurf adapter to use .windsurf/rules/*.md with mode field - Update GitHub Copilot to use .github/copilot-instructions.md - Update Trae to use .trae/rules/project_rules.md with YAML frontmatter - Update OpenCode global path to ~/.config/opencode/ - Add new discovery paths for Cursor, Kilo, Roo, Windsurf, GitHub Copilot - Improve agent detection with additional config file checks BREAKING CHANGE: Config file paths have changed for Cursor, Windsurf, Trae, and GitHub Copilot adapters to match their 2026 specifications. * feat: add e2e tests for skill-translator and fix translation issues - Add comprehensive e2e tests for skill translator (86 tests) - Fix translateSkillToAll to include all 17 agents - Fix writeTranslatedSkill to check for failed translations - Update vitest config to resolve workspace packages - Remove unnecessary 2026 comments from agent adapters and skill-translator * fix: improve agent detection and add overwrite option to translator Agent detection fixes: - github-copilot: Remove overly broad .github dir check, only detect Copilot-specific artifacts (copilot-instructions.md, instructions, ~/.copilot) - kilo: Fix modes path from .kilocodemodes to .kilocode/modes - roo: Fix modes path from .roomodes to .roo/modes Translator improvements: - Add overwrite option to writeTranslatedSkill() to prevent accidental overwrites - Return skipped flag when file exists and overwrite=false Refactoring: - Centralize agent config in packages/core/src/agent-config.ts - Update all agent adapters to use shared AGENT_CONFIG - Re-export utility functions for backwards compatibility * fix: update clawdbot test and use workspace dependency - Update clawdbot test to expect new standardized skillsDir (.clawdbot/skills) - Change @skillkit/core dependency to workspace:* for proper monorepo linking * fix: address CodeRabbit and Devin review suggestions - Remove AGENTS.md from detection in Kilo, Roo, Trae adapters (prevents false positives) - Fix AmpAdapter detection path (check .amp instead of .agents) - Fix regex pattern in parseConfig for markdown adapters to match any skill name format - Add hooks and permissionMode to specialFields for proper extraction - Add path traversal protection in writeTranslatedSkill - Fix boolean field preservation using 'in' check instead of truthy checks - Add mode field preservation for Windsurf - Add permissionMode support for Roo adapter
30 lines
791 B
TypeScript
30 lines
791 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { resolve } from 'node:path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['**/*.e2e.test.ts'],
|
|
testTimeout: 60000, // E2E tests need more time
|
|
hookTimeout: 30000,
|
|
retry: 1, // Retry failed tests once for flaky network/fs operations
|
|
sequence: {
|
|
shuffle: false, // Run tests in order for debugging
|
|
},
|
|
pool: 'forks', // Use forks for better isolation
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: false,
|
|
isolate: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@skillkit/core': resolve(__dirname, '../packages/core/src/index.ts'),
|
|
'@skillkit/agents': resolve(__dirname, '../packages/agents/src/index.ts'),
|
|
},
|
|
},
|
|
});
|