agentic-team-templates 0.7.0 → 0.8.0

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 CHANGED
@@ -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.7.0",
3
+ "version": "0.8.0",
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 () => {