qatools-cli 1.2.29 → 1.2.32

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/context-sync.js CHANGED
@@ -56,6 +56,7 @@ function renderToolsSection() {
56
56
  "### qa-tools tools for this project",
57
57
  "- Code exists that no requirement covers (built before qa-tools, or on the side): `qatools baseline-prompt` — reconstruct requirements from the code; a member approves them as built.",
58
58
  "- Users should be able to request features and vote (whether or not the app already has a page for it): `qatools requests-integration-prompt` — requests, votes and comments reach qa-tools and their status (accepted / planned / released / declined) goes back to the app. See what has arrived: `qatools feature-requests`.",
59
+ "- The app runs on Azure, Google Cloud, AWS or Firebase and its resources are not set up yet: `qatools infra-prompt` — take stock, propose a plan, infrastructure code, applied only after the user approves.",
59
60
  "- A release is done: `qatools release-notes-prompt` — draft release notes for the app's users (only what they notice, no technical details), save with `qatools release-notes-draft`; a member publishes them.",
60
61
  "- Something more important must go into a sprint in progress: propose a swap (MCP `propose_sprint_plan` swaps) instead of overfilling it; a member approves.",
61
62
  "",
package/hooks.js CHANGED
@@ -65,10 +65,15 @@ function refusalText(res) {
65
65
  }
66
66
 
67
67
  // Runs inside the git hook: exit 1 refuses the commit
68
- function runCommitCheck(file, cwd = process.cwd()) {
68
+ function runCommitCheck(file, cwd = process.cwd(), { refresh } = {}) {
69
69
  let message = "";
70
70
  try { message = fs.readFileSync(file, "utf8"); } catch { return 0; }
71
- const res = checkMessage(message, readKeyCache(cwd)?.keys || null);
71
+ let res = checkMessage(message, readKeyCache(cwd)?.keys || null);
72
+ // IMP-33: the cache may predate a requirement created moments ago — refresh it once and check again
73
+ if (!res.ok && refresh) {
74
+ try { refresh(); } catch { /* offline: keep the first answer */ }
75
+ res = checkMessage(message, readKeyCache(cwd)?.keys || null);
76
+ }
72
77
  if (res.warning) console.error(res.warning);
73
78
  if (res.ok) return 0;
74
79
  console.error(refusalText(res));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qatools-cli",
3
- "version": "1.2.29",
3
+ "version": "1.2.32",
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",
@@ -17,7 +17,8 @@
17
17
  "hooks.js",
18
18
  "brief.js",
19
19
  "secrets.js",
20
- "agents.js"
20
+ "agents.js",
21
+ "vault.js"
21
22
  ],
22
23
  "keywords": [
23
24
  "qa",