@mknrt/autotests-overkill 1.1.3 → 1.1.5
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 +17 -5
- package/dist/src/appContext.d.ts +2 -0
- package/dist/src/appContext.js +4 -0
- package/dist/src/config/consumerConfig.d.ts +5 -0
- package/dist/src/config/consumerConfig.js +5 -0
- package/dist/src/connectors/autotests2Connector.d.ts +8 -0
- package/dist/src/connectors/autotests2Connector.js +7 -0
- package/dist/src/connectors/fisPlatformConnector.d.ts +15 -0
- package/dist/src/connectors/fisPlatformConnector.js +112 -0
- package/dist/src/domain/analyzeDiffImpact.js +66 -0
- package/dist/src/domain/findBackendTestContext.d.ts +24 -0
- package/dist/src/domain/findBackendTestContext.js +165 -0
- package/dist/src/domain/generateSpecBlueprint.js +48 -0
- package/dist/src/domain/triageFailedRun.js +97 -0
- package/dist/src/indexer/extractors/apiDiscoveryExtractor.d.ts +23 -0
- package/dist/src/indexer/extractors/apiDiscoveryExtractor.js +183 -0
- package/dist/src/indexer/extractors/apiInteractionExtractor.d.ts +23 -0
- package/dist/src/indexer/extractors/apiInteractionExtractor.js +35 -0
- package/dist/src/indexer/extractors/backendContractExtractor.d.ts +26 -0
- package/dist/src/indexer/extractors/backendContractExtractor.js +66 -0
- package/dist/src/indexer/extractors/frontendContractExtractor.js +10 -2
- package/dist/src/indexer/refreshPipeline.js +40 -0
- package/dist/src/mcp/registerTools.js +8 -0
- package/docs/operator-cookbook.md +14 -3
- package/docs/superpowers/plans/2026-04-20-fis-platform-backend-integration.md +980 -0
- package/docs/tool-catalog.md +12 -3
- package/overkill.config.example.json +2 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { analyzeTestGaps } from '../domain/analyzeTestGaps.js';
|
|
|
4
4
|
import { buildRerunScope } from '../domain/buildRerunScope.js';
|
|
5
5
|
import { buildSetupTeardownPlan } from '../domain/buildSetupTeardownPlan.js';
|
|
6
6
|
import { findExistingTestAssets } from '../domain/findExistingTestAssets.js';
|
|
7
|
+
import { findBackendTestContext } from '../domain/findBackendTestContext.js';
|
|
7
8
|
import { findFrontendContract } from '../domain/findFrontendContract.js';
|
|
8
9
|
import { findFrontendRuntimeLogic } from '../domain/findFrontendRuntimeLogic.js';
|
|
9
10
|
import { findTestAreaContext } from '../domain/findTestAreaContext.js';
|
|
@@ -22,6 +23,13 @@ export function buildToolRegistry() {
|
|
|
22
23
|
outputSchema: toolOutputSchema,
|
|
23
24
|
execute: findExistingTestAssets,
|
|
24
25
|
},
|
|
26
|
+
{
|
|
27
|
+
name: 'find_backend_test_context',
|
|
28
|
+
description: 'Finds autotests2 API interaction flows plus backend endpoint, validation, async-task, and error hints.',
|
|
29
|
+
inputSchema: z.object({ query: z.string().min(1) }),
|
|
30
|
+
outputSchema: toolOutputSchema,
|
|
31
|
+
execute: findBackendTestContext,
|
|
32
|
+
},
|
|
25
33
|
{
|
|
26
34
|
name: 'find_test_area_context',
|
|
27
35
|
description: 'Returns conventions, init patterns, and area context for constructor or formRunner.',
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
1. Run `find_existing_test_assets` for the target widget or feature.
|
|
6
6
|
2. Run `find_frontend_contract`.
|
|
7
7
|
3. Run `find_frontend_runtime_logic`.
|
|
8
|
-
4.
|
|
9
|
-
5.
|
|
8
|
+
4. For API-heavy flows, run `find_backend_test_context` to inspect `ApiDiscoveryCatalog`, `api-interaction`, and `backend-endpoint` evidence.
|
|
9
|
+
5. Run `generate_spec_blueprint`.
|
|
10
|
+
6. Review reuse candidates, setup hints, selector guidance, backend params, validation hints, and async completion hints before editing `autotests2`.
|
|
10
11
|
|
|
11
12
|
## Find coverage gaps
|
|
12
13
|
|
|
@@ -20,7 +21,17 @@
|
|
|
20
21
|
1. Run `summarize_ci_context`.
|
|
21
22
|
2. Run `triage_failed_run`.
|
|
22
23
|
3. Run `build_rerun_scope`.
|
|
23
|
-
4. If frontend files changed, run `analyze_diff_impact`.
|
|
24
|
+
4. If frontend or backend files changed, run `analyze_diff_impact`.
|
|
25
|
+
5. When API capture files exist, treat triage backend hints as evidence-backed hypotheses only when the capture path matches high-confidence `api-interaction` and `backend-endpoint` records.
|
|
26
|
+
|
|
27
|
+
## Use backend indexing
|
|
28
|
+
|
|
29
|
+
1. Set optional `repos.fisPlatform` to `../fis_platform` in `overkill.config.json`.
|
|
30
|
+
2. Run `npm run index`; refresh builds `ApiDiscoveryCatalog` from `autotests2` support code before scanning backend sources.
|
|
31
|
+
3. Review snapshots under `.overkill-cache/snapshots`: `api-discovery-catalog.json`, `api-interactions.json`, and `backend-contracts.json`.
|
|
32
|
+
4. Use backend context for debugging request flows discovered from support code or API capture, generating API-heavy blueprints, triaging failures with API captures, and analyzing backend REST/resource diffs.
|
|
33
|
+
5. Do not treat backend indexing as a hardcoded file allowlist. Discovery uses REST/JAX-RS signals and evidence metadata such as `confidence`, `whySelected`, `whyMatched`, `normalizedPaths`, and `evidencePaths`.
|
|
34
|
+
6. Runtime API captures are on-demand in iteration 1; raw captures are not persisted to the knowledge store.
|
|
24
35
|
|
|
25
36
|
## Onboard a new engineer
|
|
26
37
|
|