qatools-cli 1.1.11 → 1.1.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/qatools.js +27 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qatools-cli",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "CLI for QA Tools — requirements, epics, sprints, sessions, App Context sync, project agenda. The companion to qa-tools.com.",
5
5
  "scripts": {
6
6
  "release": "npm version patch --no-git-tag-version && npm publish",
package/qatools.js CHANGED
@@ -334,6 +334,31 @@ program
334
334
  process.exit(0);
335
335
  });
336
336
 
337
+ program
338
+ .command("member-add")
339
+ .description("Add a member to the project by email — sends them an invite email automatically")
340
+ .requiredOption("--member <email>", "Email of the person to add as a member")
341
+ .option("--project <id>", "Target project ID (overrides default)")
342
+ .option("-e, --email <email>", "Login email")
343
+ .option("-p, --password <password>", "Login password")
344
+ .action(async (options) => {
345
+ await authenticate(options);
346
+ const creds = getCredentials();
347
+ const projectId = options.project || creds?.projectId;
348
+ if (!projectId) { console.error("No project configured. Run: qatools setup, or pass --project <id>"); process.exit(1); }
349
+
350
+ const addMember = httpsCallable(functions, "addProjectMember");
351
+ try {
352
+ const result = await addMember({ projectId, email: options.member });
353
+ if (result.data.alreadyMember) console.log(`${result.data.email} is already a member.`);
354
+ else console.log(`Added ${result.data.email} — an invite email has been sent.`);
355
+ } catch (e) {
356
+ console.error("Failed:", e.message);
357
+ process.exit(1);
358
+ }
359
+ process.exit(0);
360
+ });
361
+
337
362
  program
338
363
  .command("pending")
339
364
  .description("List test sessions awaiting Claude analysis")
@@ -2104,6 +2129,7 @@ qatools backlog-tags # List existing tags (MUST check before tag
2104
2129
  qatools backlog-create -d "..." -t bug --requirement-key <key> --assigned <email> --developer <email> --sprint <id> --tags tag1,tag2
2105
2130
  qatools backlog-update -i <id> --status resolved --sprint <id> --priority 1 --requirement-key <key> --developer <email> --tags tag1,tag2
2106
2131
  qatools notify --to <email> --subject "..." --message "..." # email a project member directly (e.g. "ready to test"); respects their opt-out
2132
+ qatools member-add --member <email> # add a member to the project (sends them an invite email)
2107
2133
  qatools backlog-duplicates --local # Output for local AI analysis (no API key needed)
2108
2134
  qatools backlog-duplicates # AI-powered duplicate detection (requires API key)
2109
2135
 
@@ -2600,6 +2626,7 @@ export QATOOLS_API_KEY=${apiKey || "<din-nyckel>"}
2600
2626
  - \`qatools backlog-create -d "..." -t bug\` — create backlog item
2601
2627
  - \`qatools backlog-update -i <id> --status resolved --evidence "..."\` — mark resolved (evidence required)
2602
2628
  - \`qatools notify --to <email> --subject "..." --message "..."\` — email a project member directly (respects opt-out)
2629
+ - \`qatools member-add --member <email>\` — add a member to the project (sends an invite email)
2603
2630
  - \`qatools access show\` — view access model
2604
2631
 
2605
2632
  ### Skills