qfai 0.8.1 → 0.9.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.
- package/README.md +29 -2
- package/assets/init/.qfai/README.md +8 -1
- package/assets/init/.qfai/prompts/README.md +6 -1
- package/assets/init/.qfai/prompts/analyze/README.md +38 -0
- package/assets/init/.qfai/prompts/analyze/scenario_test_consistency.md +35 -0
- package/assets/init/.qfai/prompts/analyze/spec_contract_consistency.md +36 -0
- package/assets/init/.qfai/prompts/analyze/spec_scenario_consistency.md +35 -0
- package/assets/init/.qfai/prompts.local/README.md +2 -1
- package/assets/init/.qfai/samples/analyze/analysis.md +38 -0
- package/dist/cli/index.cjs +8 -3
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +8 -3
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -996,8 +996,8 @@ import { readFile as readFile4 } from "fs/promises";
|
|
|
996
996
|
import path8 from "path";
|
|
997
997
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
998
998
|
async function resolveToolVersion() {
|
|
999
|
-
if ("0.
|
|
1000
|
-
return "0.
|
|
999
|
+
if ("0.9.0".length > 0) {
|
|
1000
|
+
return "0.9.0";
|
|
1001
1001
|
}
|
|
1002
1002
|
try {
|
|
1003
1003
|
const packagePath = resolvePackageJsonPath();
|
|
@@ -1522,6 +1522,11 @@ async function runInit(options) {
|
|
|
1522
1522
|
const qfaiAssets = path12.join(assetsRoot, ".qfai");
|
|
1523
1523
|
const destRoot = path12.resolve(options.dir);
|
|
1524
1524
|
const destQfai = path12.join(destRoot, ".qfai");
|
|
1525
|
+
if (options.force) {
|
|
1526
|
+
info(
|
|
1527
|
+
"NOTE: --force \u306F .qfai/prompts/** \u306E\u307F\u4E0A\u66F8\u304D\u3057\u307E\u3059\uFF08prompts.local \u306F\u4FDD\u8B77\u3055\u308C\u3001specs/contracts \u7B49\u306F\u4E0A\u66F8\u304D\u3057\u307E\u305B\u3093\uFF09\u3002"
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1525
1530
|
const rootResult = await copyTemplateTree(rootAssets, destRoot, {
|
|
1526
1531
|
force: false,
|
|
1527
1532
|
dryRun: options.dryRun,
|
|
@@ -4413,7 +4418,7 @@ Commands:
|
|
|
4413
4418
|
Options:
|
|
4414
4419
|
--root <path> \u5BFE\u8C61\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA
|
|
4415
4420
|
--dir <path> init \u306E\u51FA\u529B\u5148
|
|
4416
|
-
--force \u65E2\u5B58\
|
|
4421
|
+
--force init: .qfai/prompts \u306E\u307F\u4E0A\u66F8\u304D\uFF08\u305D\u308C\u4EE5\u5916\u306F\u65E2\u5B58\u304C\u3042\u308C\u3070\u30B9\u30AD\u30C3\u30D7\uFF09
|
|
4417
4422
|
--yes init: \u4E88\u7D04\u30D5\u30E9\u30B0\uFF08\u73FE\u72B6\u306F\u975E\u5BFE\u8A71\u306E\u305F\u3081\u6319\u52D5\u5DEE\u306A\u3057\u3002\u5C06\u6765\u306E\u5BFE\u8A71\u5C0E\u5165\u6642\u306B\u81EA\u52D5Yes\uFF09
|
|
4418
4423
|
--dry-run \u5909\u66F4\u3092\u884C\u308F\u305A\u8868\u793A\u306E\u307F
|
|
4419
4424
|
--format <text|github> validate \u306E\u51FA\u529B\u5F62\u5F0F
|