@dxtmisha/scripts 0.10.14 → 0.10.15
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.10.15] - 2026-08-10
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **AI Prompt Self-Audit Directive**: Added `getAuditPrompt` method in `LibraryAiPrompt` to append a strict, mandatory self-audit directive (`## Mandatory Final Self-Audit (CRITICAL GUARD & STRICT COMPLIANCE)`) at the end of generated AI prompt files (`ai-prompt.md`), instructing AI models to re-study and audit all generated code against project rules before concluding work.
|
|
9
|
+
|
|
5
10
|
## [0.10.13] - 2026-08-06
|
|
6
11
|
|
|
7
12
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/scripts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "CLI tools, AI integration scripts, and automation utilities for DXT UI — automated component scaffolding, Figma layout generation, library packaging, documentation building, screenshot captures, and AI prompt processing.",
|
|
7
7
|
"keywords": [
|
|
@@ -97,6 +97,8 @@ Consolidated documentation, architectural guidelines, and mandatory rules for th
|
|
|
97
97
|
prompts.push(instruction)
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
prompts.push(this.getAuditPrompt())
|
|
101
|
+
|
|
100
102
|
this.write(prompts)
|
|
101
103
|
|
|
102
104
|
if (this.isMcp) {
|
|
@@ -118,6 +120,26 @@ Consolidated documentation, architectural guidelines, and mandatory rules for th
|
|
|
118
120
|
return dirs.some(path => this.exFileOnDirs.test(path))
|
|
119
121
|
}
|
|
120
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves the final self-audit prompt for AI code verification.
|
|
125
|
+
*
|
|
126
|
+
* Получает итоговый промпт самоаудита для проверки кода ИИ.
|
|
127
|
+
* @returns formatted audit prompt / отформатированный промпт аудита
|
|
128
|
+
* @protected
|
|
129
|
+
*/
|
|
130
|
+
protected getAuditPrompt(): string {
|
|
131
|
+
return `
|
|
132
|
+
## Mandatory Final Self-Audit (CRITICAL GUARD & STRICT COMPLIANCE)
|
|
133
|
+
|
|
134
|
+
🔴 **STOP! BEFORE DECLARING WORK COMPLETE OR ENDING YOUR TURN, YOU MUST AUDIT ALL CODE!** 🔴
|
|
135
|
+
|
|
136
|
+
1. **Mandatory Full Re-Study**: Inspect EVERY single line of code created or modified in this task.
|
|
137
|
+
2. **Rule-by-Rule Compliance Check**: Cross-reference all code changes against ALL architectural conventions, coding standards, JSDoc/TSDoc guidelines, and package rules defined in \`ai-prompt.md\`.
|
|
138
|
+
3. **Zero Ignored Rules**: Ensure NO project rule, typing constraint, or code structure guideline was bypassed, forgotten, or ignored.
|
|
139
|
+
4. **Self-Correction**: If any discrepancy, missing typing, bad JSDoc formatting, or rule violation is found during this audit, fix it IMMEDIATELY before concluding your turn.
|
|
140
|
+
`.trim()
|
|
141
|
+
}
|
|
142
|
+
|
|
121
143
|
/**
|
|
122
144
|
* Retrieves high-priority instructions from a specific file.
|
|
123
145
|
*
|