airgen-cli 0.20.4 → 0.21.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.
@@ -17,7 +17,7 @@ export function registerBaselineCommands(program, client) {
17
17
  b.ref ?? b.id,
18
18
  b.label ?? "",
19
19
  b.createdAt ?? "",
20
- String(b.requirementCount ?? 0),
20
+ String(b.requirementVersionCount ?? b.requirementRefs?.length ?? b.requirementCount ?? 0),
21
21
  ]));
22
22
  }
23
23
  });
@@ -137,6 +137,7 @@ export function registerRequirementCommands(program, client) {
137
137
  .option("--section <id>", "Section ID")
138
138
  .option("--tags <tags>", "Comma-separated tags")
139
139
  .option("--idempotency-key <key>", "Prevent duplicates on retry — returns existing if key was already used")
140
+ .option("--verifies <ref>", "Atomically create a 'verifies' trace link to this requirement ref")
140
141
  .action(async (tenant, projectKey, opts) => {
141
142
  if (!opts.section && !opts.document) {
142
143
  console.error("Error: --section or --document is required. Without it, the requirement gets a project-level ref");
@@ -156,6 +157,7 @@ export function registerRequirementCommands(program, client) {
156
157
  sectionId: opts.section,
157
158
  tags: opts.tags?.split(",").map(t => t.trim()),
158
159
  idempotencyKey: opts.idempotencyKey,
160
+ verifiesRef: opts.verifies,
159
161
  });
160
162
  if (isJsonMode()) {
161
163
  output(data);
@@ -166,6 +168,8 @@ export function registerRequirementCommands(program, client) {
166
168
  }
167
169
  else {
168
170
  console.log("Requirement created.");
171
+ if (data.traceLink)
172
+ console.log("Trace link (verifies) created.");
169
173
  }
170
174
  output(data);
171
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airgen-cli",
3
- "version": "0.20.4",
3
+ "version": "0.21.1",
4
4
  "description": "AIRGen CLI — requirements engineering from the command line",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",