qfai 1.0.6 → 1.1.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.
Files changed (51) hide show
  1. package/README.md +327 -245
  2. package/assets/init/.qfai/README.md +2 -1
  3. package/assets/init/.qfai/assistant/README.md +1 -1
  4. package/assets/init/.qfai/assistant/prompts/README.md +1 -1
  5. package/assets/init/.qfai/assistant/prompts/qfai-configure.md +197 -0
  6. package/assets/init/.qfai/assistant/prompts/qfai-verify.md +1 -1
  7. package/assets/init/.qfai/assistant/steering/README.md +6 -0
  8. package/assets/init/.qfai/assistant/steering/manifest.md +43 -0
  9. package/assets/init/.qfai/contracts/db/README.md +10 -3
  10. package/assets/init/.qfai/samples/guardrails/delta_with_guardrails.md +19 -0
  11. package/assets/init/.qfai/specs/README.md +4 -0
  12. package/assets/init/root/.claude/commands/qfai-configure.md +14 -0
  13. package/assets/init/root/.claude/commands/qfai-discuss.md +14 -0
  14. package/assets/init/root/.claude/commands/qfai-implement.md +14 -0
  15. package/assets/init/root/.claude/commands/qfai-require.md +14 -0
  16. package/assets/init/root/.claude/commands/qfai-scenario-test.md +14 -0
  17. package/assets/init/root/.claude/commands/qfai-spec.md +14 -0
  18. package/assets/init/root/.claude/commands/qfai-unit-test.md +14 -0
  19. package/assets/init/root/.claude/commands/qfai-verify.md +14 -0
  20. package/assets/init/root/.codex/README.md +16 -0
  21. package/assets/init/root/.codex/skills/qfai-configure/SKILL.md +18 -0
  22. package/assets/init/root/.codex/skills/qfai-discuss/SKILL.md +18 -0
  23. package/assets/init/root/.codex/skills/qfai-implement/SKILL.md +18 -0
  24. package/assets/init/root/.codex/skills/qfai-require/SKILL.md +18 -0
  25. package/assets/init/root/.codex/skills/qfai-scenario-test/SKILL.md +18 -0
  26. package/assets/init/root/.codex/skills/qfai-spec/SKILL.md +18 -0
  27. package/assets/init/root/.codex/skills/qfai-unit-test/SKILL.md +18 -0
  28. package/assets/init/root/.codex/skills/qfai-verify/SKILL.md +18 -0
  29. package/assets/init/root/.github/copilot-instructions.md +14 -0
  30. package/assets/init/root/.github/prompts/qfai-configure.prompt.md +17 -0
  31. package/assets/init/root/.github/prompts/qfai-discuss.prompt.md +17 -0
  32. package/assets/init/root/.github/prompts/qfai-implement.prompt.md +17 -0
  33. package/assets/init/root/.github/prompts/qfai-require.prompt.md +17 -0
  34. package/assets/init/root/.github/prompts/qfai-scenario-test.prompt.md +17 -0
  35. package/assets/init/root/.github/prompts/qfai-spec.prompt.md +17 -0
  36. package/assets/init/root/.github/prompts/qfai-unit-test.prompt.md +17 -0
  37. package/assets/init/root/.github/prompts/qfai-verify.prompt.md +17 -0
  38. package/assets/init/root/.github/workflows/qfai.yml +0 -2
  39. package/assets/init/root/qfai.config.yaml +1 -8
  40. package/dist/cli/index.cjs +880 -196
  41. package/dist/cli/index.cjs.map +1 -1
  42. package/dist/cli/index.mjs +866 -182
  43. package/dist/cli/index.mjs.map +1 -1
  44. package/dist/index.cjs +731 -221
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +91 -1
  47. package/dist/index.d.ts +91 -1
  48. package/dist/index.mjs +719 -216
  49. package/dist/index.mjs.map +1 -1
  50. package/package.json +1 -1
  51. package/assets/init/.qfai/assistant/prompts/qfai-pr.md +0 -209
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement code changes with tests"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-implement.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Create requirements artifacts"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-require.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement acceptance tests from scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-scenario-test.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Create specs, contracts, and scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-spec.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement unit tests from specs/scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-unit-test.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Run quality gates and produce evidence"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-verify.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -13,8 +13,6 @@ jobs:
13
13
  - uses: actions/setup-node@v4
14
14
  with:
15
15
  node-version: 20
16
- cache: npm
17
- - run: npm ci
18
16
  - run: npx qfai validate --fail-on error --format github
19
17
  - uses: actions/upload-artifact@v4
20
18
  with:
@@ -8,14 +8,7 @@ paths:
8
8
  validation:
9
9
  failOn: error
10
10
  require:
11
- specSections:
12
- - 背景
13
- - スコープ
14
- - 非ゴール
15
- - 用語
16
- - 前提
17
- - 決定事項
18
- - 業務ルール
11
+ specSections: []
19
12
  traceability:
20
13
  brMustHaveSc: true
21
14
  scMustHaveTest: true