@farazirfan/costar-server-executor 1.7.16 → 1.7.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/pi-embedded-runner/system-prompt.d.ts.map +1 -1
- package/dist/agent/pi-embedded-runner/system-prompt.js +13 -9
- package/dist/agent/pi-embedded-runner/system-prompt.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11 -0
- package/dist/server.js.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +2 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/sync.d.ts +29 -0
- package/dist/skills/sync.d.ts.map +1 -0
- package/dist/skills/sync.js +107 -0
- package/dist/skills/sync.js.map +1 -0
- package/dist/workspace/templates.d.ts +1 -1
- package/dist/workspace/templates.d.ts.map +1 -1
- package/dist/workspace/templates.js +23 -0
- package/dist/workspace/templates.js.map +1 -1
- package/package.json +1 -1
- package/skills/trading/LEARNING.md +171 -0
- package/skills/trading/SKILL.md +244 -0
- package/skills/trading/references/crypto.md +74 -0
- package/skills/trading/references/forex.md +75 -0
- package/skills/trading/references/metals.md +54 -0
- package/skills/trading/references/risk-management.md +74 -0
- package/skills/trading/references/stocks.md +74 -0
- package/skills/trading/references/strategies.md +98 -0
- package/skills/trading/scripts/position-sizer.py +125 -0
- package/skills/commit/SKILL.md +0 -69
- package/skills/review-pr/SKILL.md +0 -105
- package/skills/skill-creator/SKILL.md +0 -236
- package/skills/test/SKILL.md +0 -57
package/skills/test/SKILL.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: test
|
|
3
|
-
description: Run tests using common testing frameworks (vitest, jest, npm test). Verify code quality before committing.
|
|
4
|
-
metadata:
|
|
5
|
-
emoji: "🧪"
|
|
6
|
-
requires:
|
|
7
|
-
anyBins: ["npm", "pnpm", "yarn", "bun"]
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Test Skill
|
|
11
|
-
|
|
12
|
-
Run tests and verify code quality.
|
|
13
|
-
|
|
14
|
-
## Running Tests
|
|
15
|
-
|
|
16
|
-
**All tests:**
|
|
17
|
-
```bash
|
|
18
|
-
npm test
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
**Watch mode:**
|
|
22
|
-
```bash
|
|
23
|
-
npm test -- --watch
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Single file:**
|
|
27
|
-
```bash
|
|
28
|
-
npm test -- path/to/test.ts
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Coverage:**
|
|
32
|
-
```bash
|
|
33
|
-
npm test -- --coverage
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Best Practices
|
|
37
|
-
|
|
38
|
-
1. **Run tests before committing**: Always verify tests pass
|
|
39
|
-
2. **Write tests for new features**: Cover new code paths
|
|
40
|
-
3. **Fix failing tests first**: Don't commit broken tests
|
|
41
|
-
4. **Check coverage**: Aim for good test coverage on critical paths
|
|
42
|
-
5. **Watch mode during development**: Use `--watch` for faster feedback
|
|
43
|
-
|
|
44
|
-
## Common Testing Patterns
|
|
45
|
-
|
|
46
|
-
**Unit tests**: Test individual functions/modules in isolation
|
|
47
|
-
|
|
48
|
-
**Integration tests**: Test components working together
|
|
49
|
-
|
|
50
|
-
**E2E tests**: Test full user workflows
|
|
51
|
-
|
|
52
|
-
## Tips
|
|
53
|
-
|
|
54
|
-
- Run specific test suites: `npm test -- --grep "pattern"`
|
|
55
|
-
- Update snapshots: `npm test -- --update` (use carefully)
|
|
56
|
-
- Verbose output: `npm test -- --verbose`
|
|
57
|
-
- Parallel execution: Most frameworks run tests in parallel by default
|