@pavp/storywright 1.18.2 → 1.19.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storywright",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "PM skills for Claude Code — turn ambiguous inputs (prompts, screenshots, Figma links) into Jira-ready user stories.",
5
5
  "author": "pavp",
6
6
  "license": "MIT",
@@ -2,6 +2,7 @@
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { dirname, resolve } from "node:path";
4
4
  import { spawn } from "node:child_process";
5
+ import pkg from "../package.json" with { type: "json" };
5
6
 
6
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
7
8
  const scriptsDir = resolve(__dirname, "..", "scripts");
@@ -25,11 +26,16 @@ Usage:
25
26
  storywright list Show available + installed skills
26
27
  storywright zip <skill-name> Build a ZIP for Claude.ai upload
27
28
  storywright validate Lint skill files (frontmatter + structure)
29
+ storywright --version Print the installed version
28
30
 
29
31
  Repo: https://github.com/pavp/storywright`);
30
32
  process.exit(exit);
31
33
  }
32
34
 
35
+ if (cmd === "--version" || cmd === "-v") {
36
+ console.log(pkg.version);
37
+ process.exit(0);
38
+ }
33
39
  if (!cmd || cmd === "--help" || cmd === "-h") usage(0);
34
40
  if (!COMMANDS[cmd]) {
35
41
  console.error(`Unknown command: ${cmd}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pavp/storywright",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "PM Skills pack for Claude Code — turn ambiguous inputs (prompts, screenshots, Figma links) into Jira-ready user stories.",
5
5
  "keywords": [
6
6
  "claude",