hirmos 1.3.4 → 1.3.6

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/index.js CHANGED
@@ -12,6 +12,11 @@ function main() {
12
12
  process.stdout.write((0, args_1.helpText)());
13
13
  return;
14
14
  }
15
+ if (parsed.command === "version") {
16
+ process.stdout.write(`${(0, update_notice_1.getInstalledCliVersion)() ?? "unknown"}
17
+ `);
18
+ return;
19
+ }
15
20
  if (parsed.command === "init") {
16
21
  if (!parsed.offline) {
17
22
  const updateNotice = (0, update_notice_1.getUpdateNotice)();
package/dist/lib/args.js CHANGED
@@ -13,6 +13,9 @@ function parseArgs(argv) {
13
13
  if (argv.length === 0 || argv[0] === "--help" || argv[0] === "-h") {
14
14
  return { command: "help" };
15
15
  }
16
+ if (argv[0] === "--version") {
17
+ return { command: "version" };
18
+ }
16
19
  const command = argv[0];
17
20
  if (!command || command !== "init") {
18
21
  (0, errors_1.fail)(`Unsupported command: ${command}. This CLI supports: hirmos init`);
@@ -105,6 +108,7 @@ function helpText() {
105
108
 
106
109
  Usage:
107
110
  hirmos init [project-path] [--integration <ids>] [--source <path>] [--version <version>] [--offline]
111
+ hirmos --version
108
112
 
109
113
  Defaults:
110
114
  project-path: .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hirmos",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "HIRMOS framework installer and AI-tool integration CLI.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",