@bugzy-ai/bugzy 1.9.2 → 1.9.4
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/LICENSE +21 -21
- package/README.md +273 -273
- package/dist/cli/index.cjs +23 -50
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +22 -49
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +20 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -46
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js.map +1 -1
- package/dist/subagents/metadata.cjs.map +1 -1
- package/dist/subagents/metadata.js.map +1 -1
- package/dist/tasks/index.cjs +20 -9
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +20 -9
- package/dist/tasks/index.js.map +1 -1
- package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
- package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
- package/dist/templates/init/.bugzy/runtime/project-context.md +35 -0
- package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
- package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -0
- package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
- package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
- package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +632 -0
- package/dist/templates/init/.gitignore-template +25 -0
- package/package.json +95 -95
- package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
- package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -97
- package/templates/init/.bugzy/runtime/project-context.md +35 -35
- package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -87
- package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
- package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
- package/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -535
- package/templates/init/.bugzy/runtime/testing-best-practices.md +724 -724
- package/templates/init/.env.testdata +18 -18
- package/templates/init/.gitignore-template +24 -24
- package/templates/init/AGENTS.md +155 -155
- package/templates/init/CLAUDE.md +157 -157
- package/templates/init/test-runs/README.md +45 -45
- package/templates/playwright/BasePage.template.ts +190 -190
- package/templates/playwright/auth.setup.template.ts +89 -89
- package/templates/playwright/dataGenerators.helper.template.ts +148 -148
- package/templates/playwright/dateUtils.helper.template.ts +96 -96
- package/templates/playwright/pages.fixture.template.ts +50 -50
- package/templates/playwright/playwright.config.template.ts +97 -97
- package/templates/playwright/reporters/bugzy-reporter.ts +454 -454
package/dist/cli/index.cjs
CHANGED
|
@@ -31,12 +31,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
));
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/tsup@8.5.
|
|
34
|
+
// node_modules/.pnpm/tsup@8.5.0_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
|
|
35
35
|
var getImportMetaUrl, importMetaUrl;
|
|
36
36
|
var init_cjs_shims = __esm({
|
|
37
|
-
"node_modules/.pnpm/tsup@8.5.
|
|
37
|
+
"node_modules/.pnpm/tsup@8.5.0_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js"() {
|
|
38
38
|
"use strict";
|
|
39
|
-
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.
|
|
39
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
40
40
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
}
|
|
42
42
|
});
|
|
@@ -135,7 +135,9 @@ Extract the following from arguments:
|
|
|
135
135
|
- **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
|
|
136
136
|
- **focus**: Optional specific feature or section to focus on`
|
|
137
137
|
},
|
|
138
|
-
// Step 4:
|
|
138
|
+
// Step 4: Load Project Context (library)
|
|
139
|
+
"load-project-context",
|
|
140
|
+
// Step 5: Knowledge Base Read (library)
|
|
139
141
|
"read-knowledge-base",
|
|
140
142
|
// Step 5: Gather Context (inline)
|
|
141
143
|
{
|
|
@@ -442,10 +444,10 @@ var init_generate_test_plan = __esm({
|
|
|
442
444
|
title: "Arguments",
|
|
443
445
|
content: `Product description: $ARGUMENTS`
|
|
444
446
|
},
|
|
445
|
-
// Step 4:
|
|
446
|
-
"read-knowledge-base",
|
|
447
|
-
// Step 5: Load Project Context (library)
|
|
447
|
+
// Step 4: Load Project Context (library)
|
|
448
448
|
"load-project-context",
|
|
449
|
+
// Step 5: Knowledge Base Read (library)
|
|
450
|
+
"read-knowledge-base",
|
|
449
451
|
// Step 6: Process Description (inline)
|
|
450
452
|
{
|
|
451
453
|
inline: true,
|
|
@@ -675,7 +677,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
|
|
|
675
677
|
title: "Arguments",
|
|
676
678
|
content: `Team message/thread context: $ARGUMENTS`
|
|
677
679
|
},
|
|
678
|
-
// Step 4:
|
|
680
|
+
// Step 4: Load Project Context (library)
|
|
681
|
+
"load-project-context",
|
|
682
|
+
// Step 5: Knowledge Base Read (library)
|
|
679
683
|
"read-knowledge-base",
|
|
680
684
|
// Step 5: Detect Intent (inline - task-specific)
|
|
681
685
|
{
|
|
@@ -822,7 +826,9 @@ Process various types of events using intelligent pattern matching and historica
|
|
|
822
826
|
title: "Arguments",
|
|
823
827
|
content: `Arguments: $ARGUMENTS`
|
|
824
828
|
},
|
|
825
|
-
// Step 4:
|
|
829
|
+
// Step 4: Load Project Context (library)
|
|
830
|
+
"load-project-context",
|
|
831
|
+
// Step 5: Knowledge Base Read (library)
|
|
826
832
|
"read-knowledge-base",
|
|
827
833
|
// Step 5: Understand Event Context (inline)
|
|
828
834
|
{
|
|
@@ -1262,7 +1268,9 @@ Extract the following from arguments:
|
|
|
1262
1268
|
- Specific file: "tests/specs/login.spec.ts"
|
|
1263
1269
|
- All tests: "all" or "" \u2192 runs entire test suite`
|
|
1264
1270
|
},
|
|
1265
|
-
// Step 4:
|
|
1271
|
+
// Step 4: Load Project Context (library)
|
|
1272
|
+
"load-project-context",
|
|
1273
|
+
// Step 5: Knowledge Base Read (library)
|
|
1266
1274
|
"read-knowledge-base",
|
|
1267
1275
|
// Step 5: Test Execution Strategy (library)
|
|
1268
1276
|
"read-test-strategy",
|
|
@@ -1425,7 +1433,9 @@ This task performs comprehensive change verification with:
|
|
|
1425
1433
|
|
|
1426
1434
|
The input format determines the trigger source and context extraction strategy.`
|
|
1427
1435
|
},
|
|
1428
|
-
// Step 4:
|
|
1436
|
+
// Step 4: Load Project Context (library)
|
|
1437
|
+
"load-project-context",
|
|
1438
|
+
// Step 5: Knowledge Base Read (library)
|
|
1429
1439
|
"read-knowledge-base",
|
|
1430
1440
|
// Step 5: Detect Trigger Source (inline)
|
|
1431
1441
|
{
|
|
@@ -1926,6 +1936,7 @@ This command orchestrates the complete test coverage workflow in a single execut
|
|
|
1926
1936
|
content: `Focus area: $ARGUMENTS`
|
|
1927
1937
|
},
|
|
1928
1938
|
// Phase 1: Setup
|
|
1939
|
+
"load-project-context",
|
|
1929
1940
|
"read-knowledge-base",
|
|
1930
1941
|
// Phase 2: Exploration Protocol
|
|
1931
1942
|
"exploration-protocol",
|
|
@@ -2000,8 +2011,8 @@ var init_explore_application = __esm({
|
|
|
2000
2011
|
- **system**: target system (optional for multi-system setups)`
|
|
2001
2012
|
},
|
|
2002
2013
|
// Setup
|
|
2003
|
-
"read-knowledge-base",
|
|
2004
2014
|
"load-project-context",
|
|
2015
|
+
"read-knowledge-base",
|
|
2005
2016
|
// Exploration Protocol (adaptive depth)
|
|
2006
2017
|
"exploration-protocol",
|
|
2007
2018
|
// Execute
|
|
@@ -6326,43 +6337,6 @@ Test Strategy: [exists/missing]
|
|
|
6326
6337
|
tags: ["setup", "context"]
|
|
6327
6338
|
};
|
|
6328
6339
|
|
|
6329
|
-
// src/tasks/steps/setup/check-existing-artifacts.ts
|
|
6330
|
-
init_cjs_shims();
|
|
6331
|
-
var checkExistingArtifactsStep = {
|
|
6332
|
-
id: "check-existing-artifacts",
|
|
6333
|
-
title: "Assess Existing Artifacts",
|
|
6334
|
-
category: "setup",
|
|
6335
|
-
content: `## Assess Existing Artifacts
|
|
6336
|
-
|
|
6337
|
-
Before proceeding, check what already exists to determine which phases to skip.
|
|
6338
|
-
|
|
6339
|
-
**1. Check Project Context**
|
|
6340
|
-
- Read \`.bugzy/runtime/project-context.md\` if it exists
|
|
6341
|
-
- Check if it contains information relevant to: $ARGUMENTS
|
|
6342
|
-
- **Decision**: If project context exists and covers the focus area -> Skip exploration
|
|
6343
|
-
|
|
6344
|
-
**2. Check Test Plan**
|
|
6345
|
-
- Read \`test-plan.md\` if it exists
|
|
6346
|
-
- Check if it contains features related to: $ARGUMENTS
|
|
6347
|
-
- **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
|
|
6348
|
-
|
|
6349
|
-
**3. Check Existing Test Cases**
|
|
6350
|
-
- List files in \`./test-cases/\` for tests related to focus area
|
|
6351
|
-
- List files in \`./tests/specs/\` for automated tests
|
|
6352
|
-
- **Decision**: If test cases already exist for the focus area -> Skip to verification only
|
|
6353
|
-
|
|
6354
|
-
**4. Document Assessment**
|
|
6355
|
-
Create a brief assessment summary:
|
|
6356
|
-
\`\`\`
|
|
6357
|
-
Assessment for: $ARGUMENTS
|
|
6358
|
-
- Project context: [exists/missing] - [covers focus area: yes/no]
|
|
6359
|
-
- Test plan: [exists/missing] - [covers focus area: yes/no]
|
|
6360
|
-
- Test cases: [count] existing for focus area
|
|
6361
|
-
- Phases to run: [list phases]
|
|
6362
|
-
\`\`\``,
|
|
6363
|
-
tags: ["setup", "assessment"]
|
|
6364
|
-
};
|
|
6365
|
-
|
|
6366
6340
|
// src/tasks/steps/setup/security-notice.ts
|
|
6367
6341
|
init_cjs_shims();
|
|
6368
6342
|
var securityNoticeStep = {
|
|
@@ -7648,7 +7622,6 @@ var STEP_LIBRARY = {
|
|
|
7648
7622
|
"read-knowledge-base": readKnowledgeBaseStep,
|
|
7649
7623
|
"read-test-strategy": readTestStrategyStep,
|
|
7650
7624
|
"load-project-context": loadProjectContextStep,
|
|
7651
|
-
"check-existing-artifacts": checkExistingArtifactsStep,
|
|
7652
7625
|
// Exploration
|
|
7653
7626
|
"exploration-protocol": explorationProtocolStep,
|
|
7654
7627
|
// Clarification
|