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.
Files changed (84) hide show
  1. package/README.md +13 -3
  2. package/bin/uds.js +30 -6
  3. package/bundled/ai/options/code-review/pr-review.ai.yaml +20 -1
  4. package/bundled/ai/standards/code-review.ai.yaml +15 -2
  5. package/bundled/ai/standards/developer-memory.ai.yaml +12 -2
  6. package/bundled/ai/standards/full-coverage-testing.ai.yaml +44 -6
  7. package/bundled/ai/standards/open-work-tracking.ai.yaml +191 -11
  8. package/bundled/ai/standards/pipeline-security-gates.ai.yaml +48 -3
  9. package/bundled/ai/standards/project-context-memory.ai.yaml +12 -2
  10. package/bundled/core/code-review-checklist.md +20 -2
  11. package/bundled/core/developer-memory.md +12 -2
  12. package/bundled/core/full-coverage-testing.md +44 -4
  13. package/bundled/core/open-work-tracking.md +156 -16
  14. package/bundled/core/pipeline-security-gates.md +63 -0
  15. package/bundled/core/project-context-memory.md +10 -2
  16. package/bundled/locales/zh-CN/CHANGELOG.md +51 -3
  17. package/bundled/locales/zh-CN/README.md +1 -1
  18. package/bundled/locales/zh-CN/SECURITY.md +1 -1
  19. package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +13 -4
  20. package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +7 -1
  21. package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +7 -1
  22. package/bundled/locales/zh-CN/adoption/checklists/minimal.md +13 -3
  23. package/bundled/locales/zh-CN/adoption/checklists/recommended.md +7 -1
  24. package/bundled/locales/zh-CN/core/code-review-checklist.md +17 -0
  25. package/bundled/locales/zh-CN/core/developer-memory.md +9 -0
  26. package/bundled/locales/zh-CN/core/full-coverage-testing.md +48 -8
  27. package/bundled/locales/zh-CN/core/pipeline-security-gates.md +64 -4
  28. package/bundled/locales/zh-CN/core/project-context-memory.md +5 -0
  29. package/bundled/locales/zh-CN/docs/AVAILABLE-STANDARDS.md +70 -0
  30. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +4 -3
  31. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +25 -23
  32. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +13 -11
  33. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +6 -6
  34. package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +7 -1
  35. package/bundled/locales/zh-CN/docs/user/GETTING-STARTED.md +44 -0
  36. package/bundled/locales/zh-CN/options/code-review/pr-review.md +13 -2
  37. package/bundled/locales/zh-TW/CHANGELOG.md +51 -3
  38. package/bundled/locales/zh-TW/README.md +1 -1
  39. package/bundled/locales/zh-TW/SECURITY.md +1 -1
  40. package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +13 -4
  41. package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +7 -1
  42. package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +7 -1
  43. package/bundled/locales/zh-TW/adoption/checklists/minimal.md +13 -3
  44. package/bundled/locales/zh-TW/adoption/checklists/recommended.md +7 -1
  45. package/bundled/locales/zh-TW/core/code-review-checklist.md +17 -0
  46. package/bundled/locales/zh-TW/core/developer-memory.md +9 -0
  47. package/bundled/locales/zh-TW/core/full-coverage-testing.md +48 -8
  48. package/bundled/locales/zh-TW/core/open-work-tracking.md +90 -14
  49. package/bundled/locales/zh-TW/core/pipeline-security-gates.md +64 -4
  50. package/bundled/locales/zh-TW/core/project-context-memory.md +5 -0
  51. package/bundled/locales/zh-TW/docs/AVAILABLE-STANDARDS.md +70 -0
  52. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +4 -3
  53. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +25 -23
  54. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +13 -11
  55. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +6 -6
  56. package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +7 -1
  57. package/bundled/locales/zh-TW/docs/user/GETTING-STARTED.md +44 -0
  58. package/bundled/locales/zh-TW/options/code-review/pr-review.md +13 -2
  59. package/bundled/skills/SKILL_NAMING.md +9 -0
  60. package/bundled/templates/gates/check-anti-fake-tests.mjs +305 -5
  61. package/package.json +3 -1
  62. package/src/commands/audit.js +9 -2
  63. package/src/commands/check.js +17 -0
  64. package/src/commands/init.js +41 -21
  65. package/src/commands/open-work.js +65 -6
  66. package/src/commands/skills.js +19 -33
  67. package/src/commands/update.js +61 -61
  68. package/src/core/open-work-config.js +103 -0
  69. package/src/flows/init-flow.js +10 -0
  70. package/src/i18n/messages.js +237 -60
  71. package/src/installers/skills-installer.js +3 -1
  72. package/src/prompts/init.js +148 -13
  73. package/src/reconciler/index.js +42 -5
  74. package/src/utils/available-standards-report.js +144 -0
  75. package/src/utils/available-standards.js +216 -0
  76. package/src/utils/copier.js +5 -4
  77. package/src/utils/friction-detector.js +27 -0
  78. package/src/utils/open-work-tracking.mjs +919 -48
  79. package/src/utils/skill-frontmatter.js +102 -0
  80. package/src/utils/skill-name-collision.js +169 -0
  81. package/src/utils/skills-install-paths.js +114 -0
  82. package/src/utils/skills-installer.js +63 -105
  83. package/src/utils/transient-fs.js +113 -0
  84. package/standards-registry.json +9 -9
@@ -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 source = getSourcePath(sourcePath);
58
- if (!source) {
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
- copyFileSync(source, targetFile);
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
- copyFileSync(source, targetFile);
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