agentic-team-templates 0.7.0 → 0.8.1
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/README.md +16 -4
- package/package.json +1 -1
- package/src/index.js +5 -0
- package/src/index.test.js +8 -0
package/README.md
CHANGED
|
@@ -23,14 +23,14 @@ AI coding assistant templates for Cursor IDE, Claude Code, and GitHub Copilot. P
|
|
|
23
23
|
No installation required. Run directly with `npx`:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npx agentic-team-templates
|
|
26
|
+
npx agentic-team-templates [template-name]
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Or install globally:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm install -g agentic-team-templates
|
|
33
|
-
agentic-team-templates
|
|
33
|
+
agentic-team-templates [template-name]
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## How to Use
|
|
@@ -133,7 +133,7 @@ npx agentic-team-templates --reset --force
|
|
|
133
133
|
|
|
134
134
|
| Option | Description |
|
|
135
135
|
|--------|-------------|
|
|
136
|
-
| `--ide
|
|
136
|
+
| `--ide=[name]` | Target IDE: `cursor`, `claude`, or `codex` (can be used multiple times) |
|
|
137
137
|
| `--list`, `-l` | List all available templates |
|
|
138
138
|
| `--dry-run` | Preview changes without writing files |
|
|
139
139
|
| `--force`, `-f` | Overwrite/remove even if files were modified |
|
|
@@ -278,7 +278,7 @@ If you're getting errors for options that should exist (like `--reset`), you may
|
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
280
|
# Force latest version (recommended)
|
|
281
|
-
npx agentic-team-templates@latest
|
|
281
|
+
npx agentic-team-templates@latest [command]
|
|
282
282
|
|
|
283
283
|
# Clear npx cache
|
|
284
284
|
npx clear-npx-cache
|
|
@@ -291,6 +291,18 @@ npm cache clean --force
|
|
|
291
291
|
|
|
292
292
|
Check which version you're running:
|
|
293
293
|
|
|
294
|
+
```bash
|
|
295
|
+
npx agentic-team-templates --version
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Output:
|
|
299
|
+
```
|
|
300
|
+
agentic-team-templates v0.7.0
|
|
301
|
+
Changelog: https://github.com/djm204/agentic-team-templates/releases/tag/agentic-team-templates-v0.7.0
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Or use `--help` which also checks for updates:
|
|
305
|
+
|
|
294
306
|
```bash
|
|
295
307
|
npx agentic-team-templates@latest --help
|
|
296
308
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-team-templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "AI coding assistant templates for Cursor IDE. Pre-configured rules and guidelines that help AI assistants write better code. - use at your own risk",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cursor",
|
package/src/index.js
CHANGED
|
@@ -15,6 +15,8 @@ const packageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
|
15
15
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
16
16
|
const PACKAGE_NAME = packageJson.name;
|
|
17
17
|
const CURRENT_VERSION = packageJson.version;
|
|
18
|
+
const REPO_URL = 'https://github.com/djm204/agentic-team-templates';
|
|
19
|
+
const CHANGELOG_URL = `${REPO_URL}/releases/tag/${PACKAGE_NAME}-v${CURRENT_VERSION}`;
|
|
18
20
|
|
|
19
21
|
// Available templates
|
|
20
22
|
const TEMPLATES = {
|
|
@@ -1280,6 +1282,7 @@ export async function run(args) {
|
|
|
1280
1282
|
process.exit(0);
|
|
1281
1283
|
} else if (arg === '--version' || arg === '-v') {
|
|
1282
1284
|
console.log(`${PACKAGE_NAME} v${CURRENT_VERSION}`);
|
|
1285
|
+
console.log(`${colors.dim('Changelog:')} ${CHANGELOG_URL}`);
|
|
1283
1286
|
process.exit(0);
|
|
1284
1287
|
} else if (arg === '--dry-run') {
|
|
1285
1288
|
dryRun = true;
|
|
@@ -1400,6 +1403,8 @@ export async function run(args) {
|
|
|
1400
1403
|
export const _internals = {
|
|
1401
1404
|
PACKAGE_NAME,
|
|
1402
1405
|
CURRENT_VERSION,
|
|
1406
|
+
REPO_URL,
|
|
1407
|
+
CHANGELOG_URL,
|
|
1403
1408
|
TEMPLATES,
|
|
1404
1409
|
SHARED_RULES,
|
|
1405
1410
|
SUPPORTED_IDES,
|
package/src/index.test.js
CHANGED
|
@@ -894,6 +894,14 @@ describe('CLI Argument Parsing', () => {
|
|
|
894
894
|
await expect(run(['-v'])).rejects.toThrow('process.exit');
|
|
895
895
|
|
|
896
896
|
expect(exitSpy).toHaveBeenCalledWith(0);
|
|
897
|
+
expect(consoleLogSpy).toHaveBeenCalledWith(expect.stringContaining('agentic-team-templates'));
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
it('should show changelog link with --version', async () => {
|
|
901
|
+
await expect(run(['--version'])).rejects.toThrow('process.exit');
|
|
902
|
+
|
|
903
|
+
expect(consoleLogSpy).toHaveBeenCalledWith(expect.stringContaining('github.com'));
|
|
904
|
+
expect(consoleLogSpy).toHaveBeenCalledWith(expect.stringContaining('releases/tag'));
|
|
897
905
|
});
|
|
898
906
|
|
|
899
907
|
it('should error on unknown option', async () => {
|