@taodigital/agents 0.0.0-stage → 1.2.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 +99 -2
- package/dist/api-test-agent.d.ts +126 -0
- package/dist/api-test-agent.js +267 -0
- package/dist/artifact-intel-agent.d.ts +11 -0
- package/dist/artifact-intel-agent.js +152 -0
- package/dist/coverage-gap-agent.d.ts +25 -0
- package/dist/coverage-gap-agent.js +269 -0
- package/dist/coverage-map-agent.d.ts +15 -0
- package/dist/coverage-map-agent.js +255 -0
- package/dist/crawl-diff-agent.d.ts +27 -0
- package/dist/crawl-diff-agent.js +412 -0
- package/dist/data-agent.d.ts +101 -0
- package/dist/data-agent.js +2284 -0
- package/dist/document-agent.d.ts +10 -0
- package/dist/document-agent.js +32 -0
- package/dist/enhancement-agent.d.ts +48 -0
- package/dist/enhancement-agent.js +342 -0
- package/dist/field-detector-agent.d.ts +35 -0
- package/dist/field-detector-agent.js +220 -0
- package/dist/flow-agent.d.ts +130 -0
- package/dist/flow-agent.js +169 -0
- package/dist/github-agent.d.ts +18 -0
- package/dist/github-agent.js +39 -0
- package/dist/github-write-agent.d.ts +67 -0
- package/dist/github-write-agent.js +249 -0
- package/dist/grouping-agent.d.ts +18 -0
- package/dist/grouping-agent.js +338 -0
- package/dist/healing-agent.d.ts +73 -0
- package/dist/healing-agent.js +137 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +67 -0
- package/dist/integration-test-agent.d.ts +118 -0
- package/dist/integration-test-agent.js +165 -0
- package/dist/label-assignment-agent.d.ts +15 -0
- package/dist/label-assignment-agent.js +97 -0
- package/dist/llm-config.d.ts +38 -0
- package/dist/llm-config.js +287 -0
- package/dist/llm-mock.d.ts +77 -0
- package/dist/llm-mock.js +192 -0
- package/dist/llm.d.ts +58 -0
- package/dist/llm.js +438 -0
- package/dist/nlp-agent.d.ts +208 -0
- package/dist/nlp-agent.js +340 -0
- package/dist/orchestrator.d.ts +285 -0
- package/dist/orchestrator.js +141 -0
- package/dist/plan-agent.d.ts +4 -0
- package/dist/plan-agent.js +200 -0
- package/dist/repo-scan-agent.d.ts +189 -0
- package/dist/repo-scan-agent.js +2032 -0
- package/dist/requirements-agent.d.ts +59 -0
- package/dist/requirements-agent.js +641 -0
- package/dist/scenario-agent.d.ts +20 -0
- package/dist/scenario-agent.js +123 -0
- package/dist/script-agent.d.ts +447 -0
- package/dist/script-agent.js +11813 -0
- package/dist/security-test-agent.d.ts +111 -0
- package/dist/security-test-agent.js +141 -0
- package/dist/skill-file-agent.d.ts +264 -0
- package/dist/skill-file-agent.js +3470 -0
- package/dist/step-coverage.d.ts +46 -0
- package/dist/step-coverage.js +288 -0
- package/dist/step-utils.d.ts +2 -0
- package/dist/step-utils.js +62 -0
- package/dist/test-case-agent.d.ts +206 -0
- package/dist/test-case-agent.js +2141 -0
- package/dist/test-import-agent.d.ts +148 -0
- package/dist/test-import-agent.js +3235 -0
- package/dist/test-script-agent.d.ts +16 -0
- package/dist/test-script-agent.js +48 -0
- package/dist/token-pricing.d.ts +14 -0
- package/dist/token-pricing.js +62 -0
- package/dist/types.d.ts +232 -0
- package/dist/types.js +7 -0
- package/dist/visual-agent.d.ts +114 -0
- package/dist/visual-agent.js +261 -0
- package/package.json +26 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZeTa-AI Requirements Agent
|
|
3
|
+
*
|
|
4
|
+
* Converts product specs (PRDs, user stories, acceptance criteria, release notes)
|
|
5
|
+
* into structured, testable Requirement objects stored in the Requirements store.
|
|
6
|
+
*
|
|
7
|
+
* Each Requirement has:
|
|
8
|
+
* - reqId: REQ-{AREA}-{NNN} — stable, sequential per area
|
|
9
|
+
* - acceptanceCriteria[]: Given/When/Then deterministic statements
|
|
10
|
+
* - priority: CRITICAL | HIGH | MEDIUM | LOW (risk-derived)
|
|
11
|
+
* - status: pending (until matchCasesToRequirements() runs)
|
|
12
|
+
*
|
|
13
|
+
* Also provides:
|
|
14
|
+
* - matchCasesToRequirements(): fuzzy matching of test cases → reqIds
|
|
15
|
+
* - generateCoverageGapReport(): Prompt 2 pre-plan gap analysis
|
|
16
|
+
*/
|
|
17
|
+
export interface RequirementInput {
|
|
18
|
+
reqId: string;
|
|
19
|
+
title: string;
|
|
20
|
+
actor?: string;
|
|
21
|
+
type: 'functional' | 'nonfunctional' | 'security' | 'accessibility' | 'data' | 'performance';
|
|
22
|
+
priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
|
|
23
|
+
acceptanceCriteria: string[];
|
|
24
|
+
businessRules: string[];
|
|
25
|
+
relatedScreenHints: string[];
|
|
26
|
+
sourceSection?: string | null;
|
|
27
|
+
derived?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface RequirementCoverageMatch {
|
|
30
|
+
covered: Array<{
|
|
31
|
+
reqId: string;
|
|
32
|
+
caseRefs: string[];
|
|
33
|
+
}>;
|
|
34
|
+
untested: string[];
|
|
35
|
+
unbuilt: string[];
|
|
36
|
+
byPriority: Record<string, {
|
|
37
|
+
covered: number;
|
|
38
|
+
total: number;
|
|
39
|
+
}>;
|
|
40
|
+
topGaps: string[];
|
|
41
|
+
}
|
|
42
|
+
export declare function extractRequirements(opts: {
|
|
43
|
+
tenantId: string;
|
|
44
|
+
projectId: string;
|
|
45
|
+
sourceText: string;
|
|
46
|
+
}): Promise<{
|
|
47
|
+
requirements: RequirementInput[];
|
|
48
|
+
saved: number;
|
|
49
|
+
dropped?: number;
|
|
50
|
+
}>;
|
|
51
|
+
export declare function generateCoverageGapReport(opts: {
|
|
52
|
+
tenantId: string;
|
|
53
|
+
projectId: string;
|
|
54
|
+
}): Promise<RequirementCoverageMatch>;
|
|
55
|
+
/**
|
|
56
|
+
* Build a compact requirements block to inject into test generation prompts.
|
|
57
|
+
* Used by test-case-agent.ts to populate traceTo with real reqIds.
|
|
58
|
+
*/
|
|
59
|
+
export declare function buildRequirementsBlock(requirements: any[]): string;
|