universal-dev-standards 6.14.0-beta.6 → 6.14.0-beta.7
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 +13 -3
- package/bin/uds.js +30 -6
- package/bundled/ai/options/code-review/pr-review.ai.yaml +20 -1
- package/bundled/ai/standards/code-review.ai.yaml +15 -2
- package/bundled/ai/standards/developer-memory.ai.yaml +12 -2
- package/bundled/ai/standards/full-coverage-testing.ai.yaml +44 -6
- package/bundled/ai/standards/open-work-tracking.ai.yaml +191 -11
- package/bundled/ai/standards/pipeline-security-gates.ai.yaml +48 -3
- package/bundled/ai/standards/project-context-memory.ai.yaml +12 -2
- package/bundled/core/code-review-checklist.md +20 -2
- package/bundled/core/developer-memory.md +12 -2
- package/bundled/core/full-coverage-testing.md +44 -4
- package/bundled/core/open-work-tracking.md +156 -16
- package/bundled/core/pipeline-security-gates.md +63 -0
- package/bundled/core/project-context-memory.md +10 -2
- package/bundled/locales/zh-CN/CHANGELOG.md +51 -3
- package/bundled/locales/zh-CN/README.md +1 -1
- package/bundled/locales/zh-CN/SECURITY.md +1 -1
- package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +13 -4
- package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +7 -1
- package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +7 -1
- package/bundled/locales/zh-CN/adoption/checklists/minimal.md +13 -3
- package/bundled/locales/zh-CN/adoption/checklists/recommended.md +7 -1
- package/bundled/locales/zh-CN/core/code-review-checklist.md +17 -0
- package/bundled/locales/zh-CN/core/developer-memory.md +9 -0
- package/bundled/locales/zh-CN/core/full-coverage-testing.md +48 -8
- package/bundled/locales/zh-CN/core/pipeline-security-gates.md +64 -4
- package/bundled/locales/zh-CN/core/project-context-memory.md +5 -0
- package/bundled/locales/zh-CN/docs/AVAILABLE-STANDARDS.md +70 -0
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +4 -3
- package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +25 -23
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +13 -11
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +6 -6
- package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +7 -1
- package/bundled/locales/zh-CN/docs/user/GETTING-STARTED.md +44 -0
- package/bundled/locales/zh-CN/options/code-review/pr-review.md +13 -2
- package/bundled/locales/zh-TW/CHANGELOG.md +51 -3
- package/bundled/locales/zh-TW/README.md +1 -1
- package/bundled/locales/zh-TW/SECURITY.md +1 -1
- package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +13 -4
- package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +7 -1
- package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +7 -1
- package/bundled/locales/zh-TW/adoption/checklists/minimal.md +13 -3
- package/bundled/locales/zh-TW/adoption/checklists/recommended.md +7 -1
- package/bundled/locales/zh-TW/core/code-review-checklist.md +17 -0
- package/bundled/locales/zh-TW/core/developer-memory.md +9 -0
- package/bundled/locales/zh-TW/core/full-coverage-testing.md +48 -8
- package/bundled/locales/zh-TW/core/open-work-tracking.md +90 -14
- package/bundled/locales/zh-TW/core/pipeline-security-gates.md +64 -4
- package/bundled/locales/zh-TW/core/project-context-memory.md +5 -0
- package/bundled/locales/zh-TW/docs/AVAILABLE-STANDARDS.md +70 -0
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +4 -3
- package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +25 -23
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +13 -11
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +6 -6
- package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +7 -1
- package/bundled/locales/zh-TW/docs/user/GETTING-STARTED.md +44 -0
- package/bundled/locales/zh-TW/options/code-review/pr-review.md +13 -2
- package/bundled/skills/SKILL_NAMING.md +9 -0
- package/bundled/templates/gates/check-anti-fake-tests.mjs +305 -5
- package/package.json +3 -1
- package/src/commands/audit.js +9 -2
- package/src/commands/check.js +17 -0
- package/src/commands/init.js +41 -21
- package/src/commands/open-work.js +65 -6
- package/src/commands/skills.js +19 -33
- package/src/commands/update.js +61 -61
- package/src/core/open-work-config.js +103 -0
- package/src/flows/init-flow.js +10 -0
- package/src/i18n/messages.js +237 -60
- package/src/installers/skills-installer.js +3 -1
- package/src/prompts/init.js +148 -13
- package/src/reconciler/index.js +42 -5
- package/src/utils/available-standards-report.js +144 -0
- package/src/utils/available-standards.js +216 -0
- package/src/utils/copier.js +5 -4
- package/src/utils/friction-detector.js +27 -0
- package/src/utils/open-work-tracking.mjs +919 -48
- package/src/utils/skill-frontmatter.js +102 -0
- package/src/utils/skill-name-collision.js +169 -0
- package/src/utils/skills-install-paths.js +114 -0
- package/src/utils/skills-installer.js +63 -105
- package/src/utils/transient-fs.js +113 -0
- package/standards-registry.json +9 -9
package/src/utils/copier.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, copyFileSync, readFileSync } from 'fs';
|
|
2
|
+
import { copyFileSyncRetrying } from './transient-fs.js';
|
|
2
3
|
import { dirname, join, basename } from 'path';
|
|
3
4
|
import { fileURLToPath } from 'url';
|
|
4
5
|
import { downloadStandard, downloadIntegration } from './github.js';
|
|
@@ -54,8 +55,8 @@ export function isExtensionPath(sourcePath) {
|
|
|
54
55
|
*/
|
|
55
56
|
export async function copyExtension(sourcePath, targetDir, projectPath) {
|
|
56
57
|
try {
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
58
|
+
const packagedSource = getSourcePath(sourcePath);
|
|
59
|
+
if (!packagedSource) {
|
|
59
60
|
return failure(
|
|
60
61
|
`Extension file not found in the installed package: ${sourcePath} (extension files are never downloaded; reinstall or upgrade universal-dev-standards)`,
|
|
61
62
|
ERROR_CODES.FILE_NOT_FOUND,
|
|
@@ -67,7 +68,7 @@ export async function copyExtension(sourcePath, targetDir, projectPath) {
|
|
|
67
68
|
if (!existsSync(targetFolder)) {
|
|
68
69
|
mkdirSync(targetFolder, { recursive: true });
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
+
copyFileSyncRetrying(packagedSource, targetFile);
|
|
71
72
|
return success(targetFile, { source: 'local', sourcePath, targetFile });
|
|
72
73
|
} catch (error) {
|
|
73
74
|
return failure(
|
|
@@ -124,7 +125,7 @@ export async function copyStandard(sourcePath, targetDir, projectPath) {
|
|
|
124
125
|
// Try local copy first (bundled or repo)
|
|
125
126
|
const source = getSourcePath(sourcePath);
|
|
126
127
|
if (source) {
|
|
127
|
-
|
|
128
|
+
copyFileSyncRetrying(source, targetFile);
|
|
128
129
|
return success(targetFile, {
|
|
129
130
|
source: 'local',
|
|
130
131
|
sourcePath,
|
|
@@ -15,6 +15,8 @@ import { join } from 'path';
|
|
|
15
15
|
import { compareFileHash, hasFileHashes, computeFileHash } from './hasher.js';
|
|
16
16
|
import { SUPPORTED_AI_TOOLS } from '../core/constants.js';
|
|
17
17
|
import { getAllStandards, getStandardSource } from './registry.js';
|
|
18
|
+
import { getAvailableStandards } from './available-standards.js';
|
|
19
|
+
import { t } from '../i18n/messages.js';
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Run friction detection on a UDS installation
|
|
@@ -39,9 +41,34 @@ export function detectFrictions(projectPath, manifest) {
|
|
|
39
41
|
const orphaned = detectOrphanedFiles(projectPath, manifest);
|
|
40
42
|
frictions.push(...orphaned);
|
|
41
43
|
|
|
44
|
+
// Type 4: Standards UDS ships that this project does not have (LOW severity, XSPEC-458 R5).
|
|
45
|
+
// One finding, not one per standard. It is information: `audit --score` does not read frictions,
|
|
46
|
+
// so this cannot move a score.
|
|
47
|
+
frictions.push(...detectAvailableStandards(manifest));
|
|
48
|
+
|
|
42
49
|
return frictions;
|
|
43
50
|
}
|
|
44
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Standards UDS ships (and `uds init` installs) that this project's manifest does not list.
|
|
54
|
+
* @param {Object} manifest
|
|
55
|
+
* @returns {Array}
|
|
56
|
+
*/
|
|
57
|
+
function detectAvailableStandards(manifest) {
|
|
58
|
+
const { offered } = getAvailableStandards(manifest);
|
|
59
|
+
if (offered.length === 0) return [];
|
|
60
|
+
|
|
61
|
+
const msg = t().availableStandards;
|
|
62
|
+
const shown = offered.slice(0, 5).map(s => s.id).join(', ');
|
|
63
|
+
return [{
|
|
64
|
+
standard: msg.frictionStandard.replace('{count}', offered.length),
|
|
65
|
+
type: 'not-installed',
|
|
66
|
+
severity: 'LOW',
|
|
67
|
+
diff: offered.length > 5 ? `${shown}, …` : shown,
|
|
68
|
+
suggestion: msg.frictionSuggestion
|
|
69
|
+
}];
|
|
70
|
+
}
|
|
71
|
+
|
|
45
72
|
/**
|
|
46
73
|
* Detect standards files that were modified by the user
|
|
47
74
|
* @param {string} projectPath
|