@vfarcic/dot-ai 0.62.0 → 0.64.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/dist/core/doc-testing-session.d.ts.map +1 -1
- package/dist/core/doc-testing-session.js +21 -54
- package/dist/core/doc-testing-types.d.ts +3 -1
- package/dist/core/doc-testing-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/prompts/doc-testing-done.md +1 -1
- package/prompts/doc-testing-test-section.md +17 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc-testing-session.d.ts","sourceRoot":"","sources":["../../src/core/doc-testing-session.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEf,YAAY,EACZ,eAAe,EACf,aAAa,EAEb,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,wBAAwB;IAEnC;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,iBAAiB;IAyB7D;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,iBAAiB,GAAG,IAAI;IAiBnE;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;IASxD;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA0B5B;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI;IAyC/F;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAkCxB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAqD5B;;OAEG;IACH,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,EAAE;IAyBjD,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IACH,OAAO,CAAC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AM,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,EACvC,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,GAAG,GACT,IAAI;IA2BP;;OAEG;IACH,iCAAiC,CAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,KAAK,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;QACxC,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,EACF,IAAI,CAAC,EAAE,GAAG,GACT,IAAI;IAmCP;;OAEG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,WAAW,EAAE;CAmBrE"}
|
|
@@ -112,14 +112,14 @@ DOCUMENTATION TESTING WORKFLOW:
|
|
|
112
112
|
RESULT SUBMISSION:
|
|
113
113
|
- Always include the sessionId when submitting results
|
|
114
114
|
- Include sectionId when testing individual sections
|
|
115
|
-
- For section testing: use JSON format {"whatWasDone": "...", "issues": [...]
|
|
115
|
+
- For section testing: use JSON format {"whatWasDone": "...", "issues": [...]}
|
|
116
116
|
- For scan results: use JSON format {"sections": ["Section 1", "Section 2", ...]}
|
|
117
117
|
- After submitting, the system automatically provides the next step
|
|
118
118
|
|
|
119
119
|
WORKFLOW PHASES:
|
|
120
120
|
- scan: Identify testable sections → submit {"sections": [...]} JSON
|
|
121
|
-
- test: Test individual sections → submit {"whatWasDone": "...", "issues": [...]
|
|
122
|
-
- analyze: Review all test results → submit analysis
|
|
121
|
+
- test: Test individual sections → submit {"whatWasDone": "...", "issues": [...]} JSON
|
|
122
|
+
- analyze: Review all test results → submit analysis
|
|
123
123
|
- fix: Apply fixes based on analysis → submit fix results
|
|
124
124
|
|
|
125
125
|
The system manages session state and workflow progression automatically.`;
|
|
@@ -205,7 +205,7 @@ The system manages session state and workflow progression automatically.`;
|
|
|
205
205
|
// Count all items by status
|
|
206
206
|
const allItems = [];
|
|
207
207
|
Object.values(session.sectionResults).forEach(result => {
|
|
208
|
-
allItems.push(...result.issues
|
|
208
|
+
allItems.push(...result.issues);
|
|
209
209
|
});
|
|
210
210
|
if (allItems.length === 0) {
|
|
211
211
|
return "✅ **No issues found** - Documentation appears to be in excellent condition!";
|
|
@@ -519,14 +519,11 @@ The system manages session state and workflow progression automatically.`;
|
|
|
519
519
|
if (!Array.isArray(parsedResults.issues)) {
|
|
520
520
|
throw new Error('Missing or invalid "issues" field - must be array');
|
|
521
521
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
// Convert string arrays to FixableItem arrays if needed
|
|
522
|
+
// Convert string array to FixableItem array with tracking
|
|
523
|
+
// Note: Format consolidated in PRD #34 - issues now contain both problems and solutions
|
|
526
524
|
const processedResults = {
|
|
527
525
|
whatWasDone: parsedResults.whatWasDone,
|
|
528
|
-
issues: this.convertToFixableItems(parsedResults.issues, session)
|
|
529
|
-
recommendations: this.convertToFixableItems(parsedResults.recommendations, session)
|
|
526
|
+
issues: this.convertToFixableItems(parsedResults.issues, session)
|
|
530
527
|
};
|
|
531
528
|
parsedResults = processedResults;
|
|
532
529
|
}
|
|
@@ -584,10 +581,10 @@ The system manages session state and workflow progression automatically.`;
|
|
|
584
581
|
const allItems = [];
|
|
585
582
|
// Collect all FixableItems from all sections
|
|
586
583
|
Object.values(session.sectionResults).forEach(result => {
|
|
587
|
-
allItems.push(...result.issues
|
|
584
|
+
allItems.push(...result.issues);
|
|
588
585
|
});
|
|
589
586
|
if (allItems.length === 0) {
|
|
590
|
-
return "No issues
|
|
587
|
+
return "No issues found during testing.";
|
|
591
588
|
}
|
|
592
589
|
// Count by status
|
|
593
590
|
const statusCounts = {
|
|
@@ -618,33 +615,21 @@ The system manages session state and workflow progression automatically.`;
|
|
|
618
615
|
return "No test results available.";
|
|
619
616
|
}
|
|
620
617
|
const pendingItems = [];
|
|
621
|
-
const issues = [];
|
|
622
|
-
const recommendations = [];
|
|
623
618
|
// Collect all pending/failed items from all sections
|
|
619
|
+
// Note: Format consolidated in PRD #34 - all issues now include problems and solutions
|
|
624
620
|
Object.values(session.sectionResults).forEach(result => {
|
|
625
621
|
const pendingIssues = result.issues.filter(item => item.status === 'pending' || item.status === 'failed');
|
|
626
|
-
|
|
627
|
-
issues.push(...pendingIssues);
|
|
628
|
-
recommendations.push(...pendingRecs);
|
|
629
|
-
pendingItems.push(...pendingIssues, ...pendingRecs);
|
|
622
|
+
pendingItems.push(...pendingIssues);
|
|
630
623
|
});
|
|
631
624
|
if (pendingItems.length === 0) {
|
|
632
|
-
return "No pending items - all issues
|
|
625
|
+
return "No pending items - all issues have been addressed!";
|
|
633
626
|
}
|
|
634
627
|
let output = "";
|
|
635
|
-
// Format
|
|
636
|
-
if (
|
|
637
|
-
output += "###
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
output += `${item.id}. ${item.text}${statusIndicator}\n`;
|
|
641
|
-
});
|
|
642
|
-
output += "\n";
|
|
643
|
-
}
|
|
644
|
-
// Format recommendations section
|
|
645
|
-
if (recommendations.length > 0) {
|
|
646
|
-
output += "### Recommendations (Items suggesting improvements)\n";
|
|
647
|
-
recommendations.forEach(item => {
|
|
628
|
+
// Format all pending items (consolidated format with problems and solutions)
|
|
629
|
+
if (pendingItems.length > 0) {
|
|
630
|
+
output += "### Items Requiring Attention\n";
|
|
631
|
+
output += "*Each item includes both the problem and its fix*\n\n";
|
|
632
|
+
pendingItems.forEach(item => {
|
|
648
633
|
const statusIndicator = item.status === 'failed' ? ' ❌ [RETRY]' : '';
|
|
649
634
|
output += `${item.id}. ${item.text}${statusIndicator}\n`;
|
|
650
635
|
});
|
|
@@ -662,7 +647,7 @@ The system manages session state and workflow progression automatically.`;
|
|
|
662
647
|
let itemFound = false;
|
|
663
648
|
// Search through all sections to find the item with the specified ID
|
|
664
649
|
Object.values(session.sectionResults).forEach(result => {
|
|
665
|
-
// Check issues
|
|
650
|
+
// Check issues (consolidated format - all items are in issues array)
|
|
666
651
|
const issueIndex = result.issues.findIndex(item => item.id === itemId);
|
|
667
652
|
if (issueIndex !== -1) {
|
|
668
653
|
result.issues[issueIndex].status = status;
|
|
@@ -671,15 +656,6 @@ The system manages session state and workflow progression automatically.`;
|
|
|
671
656
|
itemFound = true;
|
|
672
657
|
return;
|
|
673
658
|
}
|
|
674
|
-
// Check recommendations
|
|
675
|
-
const recIndex = result.recommendations.findIndex(item => item.id === itemId);
|
|
676
|
-
if (recIndex !== -1) {
|
|
677
|
-
result.recommendations[recIndex].status = status;
|
|
678
|
-
if (explanation)
|
|
679
|
-
result.recommendations[recIndex].explanation = explanation;
|
|
680
|
-
itemFound = true;
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
659
|
});
|
|
684
660
|
if (!itemFound) {
|
|
685
661
|
throw new Error(`FixableItem with ID ${itemId} not found in session ${sessionId}`);
|
|
@@ -699,7 +675,7 @@ The system manages session state and workflow progression automatically.`;
|
|
|
699
675
|
updates.forEach(update => {
|
|
700
676
|
let itemFound = false;
|
|
701
677
|
Object.values(session.sectionResults).forEach(result => {
|
|
702
|
-
// Check issues
|
|
678
|
+
// Check issues (consolidated format - all items are in issues array)
|
|
703
679
|
const issueIndex = result.issues.findIndex(item => item.id === update.itemId);
|
|
704
680
|
if (issueIndex !== -1) {
|
|
705
681
|
result.issues[issueIndex].status = update.status;
|
|
@@ -708,15 +684,6 @@ The system manages session state and workflow progression automatically.`;
|
|
|
708
684
|
itemFound = true;
|
|
709
685
|
return;
|
|
710
686
|
}
|
|
711
|
-
// Check recommendations
|
|
712
|
-
const recIndex = result.recommendations.findIndex(item => item.id === update.itemId);
|
|
713
|
-
if (recIndex !== -1) {
|
|
714
|
-
result.recommendations[recIndex].status = update.status;
|
|
715
|
-
if (update.explanation)
|
|
716
|
-
result.recommendations[recIndex].explanation = update.explanation;
|
|
717
|
-
itemFound = true;
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
687
|
});
|
|
721
688
|
if (!itemFound) {
|
|
722
689
|
notFoundItems.push(update.itemId);
|
|
@@ -736,10 +703,10 @@ The system manages session state and workflow progression automatically.`;
|
|
|
736
703
|
return [];
|
|
737
704
|
}
|
|
738
705
|
const pendingItems = [];
|
|
706
|
+
// Collect all pending/failed items (consolidated format)
|
|
739
707
|
Object.values(session.sectionResults).forEach(result => {
|
|
740
708
|
const pendingIssues = result.issues.filter(item => item.status === 'pending' || item.status === 'failed');
|
|
741
|
-
|
|
742
|
-
pendingItems.push(...pendingIssues, ...pendingRecs);
|
|
709
|
+
pendingItems.push(...pendingIssues);
|
|
743
710
|
});
|
|
744
711
|
return pendingItems.sort((a, b) => a.id - b.id); // Sort by ID for consistent ordering
|
|
745
712
|
}
|
|
@@ -77,11 +77,13 @@ export interface FixableItem {
|
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Structured test results for a section (JSON format from client agent)
|
|
80
|
+
*
|
|
81
|
+
* Note: Format was consolidated in PRD #34 - issues now contain both problems and solutions
|
|
82
|
+
* in format "[Location]: [Problem]. Fix: [Solution]"
|
|
80
83
|
*/
|
|
81
84
|
export interface SectionTestResult {
|
|
82
85
|
whatWasDone: string;
|
|
83
86
|
issues: FixableItem[];
|
|
84
|
-
recommendations: FixableItem[];
|
|
85
87
|
}
|
|
86
88
|
/**
|
|
87
89
|
* Workflow step returned by MCP interface to guide AI agents
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc-testing-types.d.ts","sourceRoot":"","sources":["../../src/core/doc-testing-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,eAAe,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAG1B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IA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BAAY,WAAW;IACrB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB"}
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ Your session data is stored at: `{sessionDir}/{sessionId}.json`
|
|
|
40
40
|
|
|
41
41
|
This contains:
|
|
42
42
|
- Complete test results for each section
|
|
43
|
-
- Status of all issues and
|
|
43
|
+
- Status of all issues and their fixes
|
|
44
44
|
- Timestamps and progress tracking
|
|
45
45
|
- Applied fixes and user decisions
|
|
46
46
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
You are testing a specific section of documentation to validate both functionality AND accuracy. You must verify that instructions work AND that the documentation text truthfully describes what actually happens.
|
|
4
4
|
|
|
5
5
|
**Important**:
|
|
6
|
-
- Skip content that has ignore comments containing "dotai-ignore" (e.g., `<!-- dotai-ignore -->`, `.. dotai-ignore`, `// dotai-ignore`). Do not generate issues
|
|
6
|
+
- Skip content that has ignore comments containing "dotai-ignore" (e.g., `<!-- dotai-ignore -->`, `.. dotai-ignore`, `// dotai-ignore`). Do not generate issues for ignored content.
|
|
7
7
|
- Look for testing hints in comments containing "dotai-test-hint" (e.g., `<!-- dotai-test-hint: use mcp__dot-ai__prompts to verify slash commands -->`, `.. dotai-test-hint: run command X to test claim Y`, `// dotai-test-hint: check actual behavior with tool Z`). Follow these hints when testing the associated content.
|
|
8
8
|
|
|
9
9
|
## CRITICAL MINDSET: User Behavior Simulation
|
|
@@ -124,12 +124,8 @@ Return your results as JSON in this exact format:
|
|
|
124
124
|
{
|
|
125
125
|
"whatWasDone": "Brief summary of what you tested and executed in this section",
|
|
126
126
|
"issues": [
|
|
127
|
-
"Specific problem or issue you found while testing",
|
|
128
|
-
"Another issue that prevents users from succeeding"
|
|
129
|
-
],
|
|
130
|
-
"recommendations": [
|
|
131
|
-
"Specific actionable suggestion to fix an issue",
|
|
132
|
-
"Improvement that would help users succeed"
|
|
127
|
+
"In 'Section Name': Specific problem or issue you found while testing. Fix: Specific actionable solution to resolve this issue",
|
|
128
|
+
"Under 'Code Example': Another issue that prevents users from succeeding. Fix: Detailed steps to correct this problem"
|
|
133
129
|
]
|
|
134
130
|
}
|
|
135
131
|
```
|
|
@@ -138,13 +134,23 @@ Return your results as JSON in this exact format:
|
|
|
138
134
|
|
|
139
135
|
**whatWasDone** (string): Concise summary covering BOTH functional testing AND semantic analysis - what commands/procedures you executed and what claims you analyzed.
|
|
140
136
|
|
|
141
|
-
**issues** (array):
|
|
137
|
+
**issues** (array): Each issue must contain BOTH the problem AND its solution in a single string using this exact format:
|
|
138
|
+
- **Location**: Start with precise location: "In 'Section Name':", "Under 'Heading':", "At line X:", etc.
|
|
139
|
+
- **Problem**: Clear description of what's wrong, broken, or prevents user success
|
|
140
|
+
- **Solution**: Follow with " Fix: " and provide specific actionable steps to resolve the issue
|
|
142
141
|
|
|
143
|
-
**
|
|
142
|
+
**Format Requirements:**
|
|
143
|
+
- **Include both critical problems AND optional improvements** - All actionable findings go in the issues array
|
|
144
|
+
- **Location specificity**: Every issue must identify exactly where the problem is found
|
|
145
|
+
- **Complete solutions**: Each fix must be detailed enough for implementation
|
|
146
|
+
- **User impact focus**: Emphasize how problems affect user success and how fixes improve experience
|
|
147
|
+
- **Consistent pattern**: "[Location]: [Problem description]. Fix: [Detailed solution]"
|
|
144
148
|
|
|
145
|
-
**ACTIONABILITY REQUIREMENT**:
|
|
149
|
+
**ACTIONABILITY REQUIREMENT**: Every issue must be actionable with a concrete fix. Avoid validation statements like "X is correct." If something is working correctly, don't mention it unless suggesting a specific enhancement.
|
|
146
150
|
|
|
147
|
-
**
|
|
151
|
+
**Examples:**
|
|
152
|
+
- "In 'Installation' section: Missing kubectl prerequisite causes setup failure. Fix: Add 'kubectl installation required' note before cluster setup steps"
|
|
153
|
+
- "Under 'API Examples': Outdated endpoint URL returns 404 errors. Fix: Update endpoint from '/v1/api' to '/v2/api' throughout examples"
|
|
148
154
|
|
|
149
155
|
## Instructions
|
|
150
156
|
|