@eldrforge/kodrdriv 1.2.22 → 1.2.24

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 (66) hide show
  1. package/PARALLEL-EXECUTION-FIXES.md +132 -0
  2. package/PARALLEL_EXECUTION_FIX.md +146 -0
  3. package/RECOVERY-FIXES.md +72 -0
  4. package/dist/arguments.js +26 -3
  5. package/dist/arguments.js.map +1 -1
  6. package/dist/commands/audio-commit.js +3 -3
  7. package/dist/commands/audio-commit.js.map +1 -1
  8. package/dist/commands/audio-review.js +13 -13
  9. package/dist/commands/audio-review.js.map +1 -1
  10. package/dist/commands/link.js +13 -13
  11. package/dist/commands/link.js.map +1 -1
  12. package/dist/commands/publish.js +200 -146
  13. package/dist/commands/publish.js.map +1 -1
  14. package/dist/commands/review.js +6 -6
  15. package/dist/commands/review.js.map +1 -1
  16. package/dist/commands/select-audio.js +4 -4
  17. package/dist/commands/select-audio.js.map +1 -1
  18. package/dist/commands/tree.js +242 -318
  19. package/dist/commands/tree.js.map +1 -1
  20. package/dist/commands/unlink.js +8 -8
  21. package/dist/commands/unlink.js.map +1 -1
  22. package/dist/commands/versions.js +3 -3
  23. package/dist/commands/versions.js.map +1 -1
  24. package/dist/constants.js +4 -4
  25. package/dist/constants.js.map +1 -1
  26. package/dist/content/diff.js +5 -2
  27. package/dist/content/diff.js.map +1 -1
  28. package/dist/content/files.js +4 -4
  29. package/dist/content/files.js.map +1 -1
  30. package/dist/execution/CommandValidator.js +160 -0
  31. package/dist/execution/CommandValidator.js.map +1 -0
  32. package/dist/execution/DependencyChecker.js +102 -0
  33. package/dist/execution/DependencyChecker.js.map +1 -0
  34. package/dist/execution/DynamicTaskPool.js +455 -0
  35. package/dist/execution/DynamicTaskPool.js.map +1 -0
  36. package/dist/execution/RecoveryManager.js +502 -0
  37. package/dist/execution/RecoveryManager.js.map +1 -0
  38. package/dist/execution/ResourceMonitor.js +125 -0
  39. package/dist/execution/ResourceMonitor.js.map +1 -0
  40. package/dist/execution/Scheduler.js +98 -0
  41. package/dist/execution/Scheduler.js.map +1 -0
  42. package/dist/execution/TreeExecutionAdapter.js +170 -0
  43. package/dist/execution/TreeExecutionAdapter.js.map +1 -0
  44. package/dist/logging.js +3 -3
  45. package/dist/logging.js.map +1 -1
  46. package/dist/ui/ProgressFormatter.js +230 -0
  47. package/dist/ui/ProgressFormatter.js.map +1 -0
  48. package/dist/util/checkpointManager.js +168 -0
  49. package/dist/util/checkpointManager.js.map +1 -0
  50. package/dist/util/dependencyGraph.js +224 -0
  51. package/dist/util/dependencyGraph.js.map +1 -0
  52. package/dist/util/fileLock.js +204 -0
  53. package/dist/util/fileLock.js.map +1 -0
  54. package/dist/util/general.js +5 -5
  55. package/dist/util/general.js.map +1 -1
  56. package/dist/util/gitMutex.js +116 -0
  57. package/dist/util/gitMutex.js.map +1 -0
  58. package/dist/util/mutex.js +96 -0
  59. package/dist/util/mutex.js.map +1 -0
  60. package/dist/util/performance.js +4 -4
  61. package/dist/util/performance.js.map +1 -1
  62. package/dist/util/safety.js +4 -4
  63. package/dist/util/safety.js.map +1 -1
  64. package/dist/util/storage.js +2 -2
  65. package/dist/util/storage.js.map +1 -1
  66. package/package.json +9 -9
@@ -12,8 +12,8 @@ import { handleIssueCreation, getReleaseNotesContent, getIssuesContent } from '@
12
12
  import { DEFAULT_EXCLUDED_PATTERNS, DEFAULT_OUTPUT_DIRECTORY } from '../constants.js';
13
13
  import { getTimestampedReviewNotesFilename, getOutputPath, getTimestampedReviewFilename, getTimestampedResponseFilename, getTimestampedRequestFilename } from '../util/general.js';
14
14
  import { create } from '../util/storage.js';
15
- import path from 'path';
16
- import os from 'os';
15
+ import path__default from 'path';
16
+ import os__default from 'os';
17
17
  import { spawn } from 'child_process';
18
18
  import fs from 'fs/promises';
19
19
 
@@ -47,7 +47,7 @@ const getReviewFilesInDirectory = async (directoryPath)=>{
47
47
  withFileTypes: true
48
48
  });
49
49
  // Filter for regular files (not directories) and get full paths
50
- const files = entries.filter((entry)=>entry.isFile()).map((entry)=>path.join(directoryPath, entry.name)).sort(); // Sort alphabetically
50
+ const files = entries.filter((entry)=>entry.isFile()).map((entry)=>path__default.join(directoryPath, entry.name)).sort(); // Sort alphabetically
51
51
  logger.debug(`Found ${files.length} files in directory: ${directoryPath}`);
52
52
  return files;
53
53
  } catch (error) {
@@ -121,7 +121,7 @@ const selectFilesForProcessing = async (reviewFiles, senditMode)=>{
121
121
  // Safe temp file handling with proper permissions and validation
122
122
  const createSecureTempFile = async ()=>{
123
123
  const logger = getLogger();
124
- const tmpDir = os.tmpdir();
124
+ const tmpDir = os__default.tmpdir();
125
125
  // Ensure temp directory exists and is writable
126
126
  try {
127
127
  // Use constant value directly to avoid import restrictions
@@ -131,7 +131,7 @@ const createSecureTempFile = async ()=>{
131
131
  logger.error(`Temp directory not writable: ${tmpDir}`);
132
132
  throw new FileOperationError(`Temp directory not writable: ${error.message}`, tmpDir, error);
133
133
  }
134
- const tmpFilePath = path.join(tmpDir, `kodrdriv_review_${Date.now()}_${Math.random().toString(36).substring(7)}.md`);
134
+ const tmpFilePath = path__default.join(tmpDir, `kodrdriv_review_${Date.now()}_${Math.random().toString(36).substring(7)}.md`);
135
135
  // Create file with restrictive permissions (owner read/write only)
136
136
  try {
137
137
  const fd = await fs.open(tmpFilePath, 'w', 0o600);
@@ -272,7 +272,7 @@ const safeWriteFile = async (filePath, content, encoding = 'utf-8')=>{
272
272
  const logger = getLogger();
273
273
  try {
274
274
  // Check if parent directory exists and is writable
275
- const parentDir = path.dirname(filePath);
275
+ const parentDir = path__default.dirname(filePath);
276
276
  const W_OK = 2; // fs.constants.W_OK value
277
277
  await fs.access(parentDir, W_OK);
278
278
  // Check available disk space (basic check by writing a small test)