@eldrforge/kodrdriv 1.2.23 → 1.2.25
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/PARALLEL-EXECUTION-FIXES.md +132 -0
- package/PARALLEL_EXECUTION_FIX.md +146 -0
- package/RECOVERY-FIXES.md +72 -0
- package/SUBMODULE-LOCK-FIX.md +132 -0
- package/dist/arguments.js +26 -3
- package/dist/arguments.js.map +1 -1
- package/dist/commands/audio-commit.js +3 -3
- package/dist/commands/audio-commit.js.map +1 -1
- package/dist/commands/audio-review.js +13 -13
- package/dist/commands/audio-review.js.map +1 -1
- package/dist/commands/link.js +13 -13
- package/dist/commands/link.js.map +1 -1
- package/dist/commands/publish.js +200 -146
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/review.js +6 -6
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/select-audio.js +4 -4
- package/dist/commands/select-audio.js.map +1 -1
- package/dist/commands/tree.js +242 -318
- package/dist/commands/tree.js.map +1 -1
- package/dist/commands/unlink.js +8 -8
- package/dist/commands/unlink.js.map +1 -1
- package/dist/commands/versions.js +3 -3
- package/dist/commands/versions.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/content/diff.js +5 -2
- package/dist/content/diff.js.map +1 -1
- package/dist/content/files.js +4 -4
- package/dist/content/files.js.map +1 -1
- package/dist/execution/CommandValidator.js +160 -0
- package/dist/execution/CommandValidator.js.map +1 -0
- package/dist/execution/DependencyChecker.js +102 -0
- package/dist/execution/DependencyChecker.js.map +1 -0
- package/dist/execution/DynamicTaskPool.js +455 -0
- package/dist/execution/DynamicTaskPool.js.map +1 -0
- package/dist/execution/RecoveryManager.js +502 -0
- package/dist/execution/RecoveryManager.js.map +1 -0
- package/dist/execution/ResourceMonitor.js +125 -0
- package/dist/execution/ResourceMonitor.js.map +1 -0
- package/dist/execution/Scheduler.js +98 -0
- package/dist/execution/Scheduler.js.map +1 -0
- package/dist/execution/TreeExecutionAdapter.js +170 -0
- package/dist/execution/TreeExecutionAdapter.js.map +1 -0
- package/dist/logging.js +3 -3
- package/dist/logging.js.map +1 -1
- package/dist/ui/ProgressFormatter.js +230 -0
- package/dist/ui/ProgressFormatter.js.map +1 -0
- package/dist/util/checkpointManager.js +168 -0
- package/dist/util/checkpointManager.js.map +1 -0
- package/dist/util/dependencyGraph.js +224 -0
- package/dist/util/dependencyGraph.js.map +1 -0
- package/dist/util/fileLock.js +241 -0
- package/dist/util/fileLock.js.map +1 -0
- package/dist/util/general.js +5 -5
- package/dist/util/general.js.map +1 -1
- package/dist/util/gitMutex.js +116 -0
- package/dist/util/gitMutex.js.map +1 -0
- package/dist/util/mutex.js +96 -0
- package/dist/util/mutex.js.map +1 -0
- package/dist/util/performance.js +4 -4
- package/dist/util/performance.js.map +1 -1
- package/dist/util/safety.js +4 -4
- package/dist/util/safety.js.map +1 -1
- package/dist/util/storage.js +2 -2
- package/dist/util/storage.js.map +1 -1
- package/package.json +6 -6
package/dist/commands/review.js
CHANGED
|
@@ -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
|
|
16
|
-
import
|
|
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)=>
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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)
|