claude-yes 1.36.0 → 1.36.1
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/dist/cli.js +11 -3
- package/dist/index.js +11 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20720,6 +20720,7 @@ function createWindowsNamedPipe(cli, customPath) {
|
|
|
20720
20720
|
function createLinuxFifo(cli, customPath) {
|
|
20721
20721
|
let fifoPath = null;
|
|
20722
20722
|
let fifoStream = null;
|
|
20723
|
+
logger.debug(`[${cli}-yes] Creating Linux FIFO with customPath: ${customPath}`);
|
|
20723
20724
|
try {
|
|
20724
20725
|
if (customPath) {
|
|
20725
20726
|
fifoPath = customPath;
|
|
@@ -20728,12 +20729,19 @@ function createLinuxFifo(cli, customPath) {
|
|
|
20728
20729
|
const randomSuffix = Math.random().toString(36).substring(2, 5);
|
|
20729
20730
|
fifoPath = `/tmp/agent-yes-${timestamp}${randomSuffix}.stdin`;
|
|
20730
20731
|
}
|
|
20731
|
-
|
|
20732
|
-
|
|
20732
|
+
try {
|
|
20733
|
+
mkdirSync(dirname(fifoPath), { recursive: true });
|
|
20734
|
+
} catch (dirError) {
|
|
20735
|
+
logger.warn(`[${cli}-yes] Failed to create FIFO directory: ${dirError}`);
|
|
20736
|
+
return null;
|
|
20737
|
+
}
|
|
20738
|
+
const escapedPath = fifoPath.replace(/'/g, `'"'"'`);
|
|
20739
|
+
const mkfifoResult = execaCommandSync(`mkfifo '${escapedPath}'`, {
|
|
20733
20740
|
reject: false
|
|
20734
20741
|
});
|
|
20735
20742
|
if (mkfifoResult.exitCode !== 0) {
|
|
20736
20743
|
logger.warn(`[${cli}-yes] mkfifo command failed with exit code ${mkfifoResult.exitCode}`);
|
|
20744
|
+
logger.warn(`[${cli}-yes] Command: mkfifo '${escapedPath}'`);
|
|
20737
20745
|
if (mkfifoResult.stderr) {
|
|
20738
20746
|
logger.warn(`[${cli}-yes] mkfifo stderr: ${mkfifoResult.stderr}`);
|
|
20739
20747
|
}
|
|
@@ -28373,5 +28381,5 @@ var { exitCode } = await cliYes(config3);
|
|
|
28373
28381
|
console.log("exiting process");
|
|
28374
28382
|
process.exit(exitCode ?? 1);
|
|
28375
28383
|
|
|
28376
|
-
//# debugId=
|
|
28384
|
+
//# debugId=2520933E2CA2793364756E2164756E21
|
|
28377
28385
|
//# sourceMappingURL=cli.js.map
|
package/dist/index.js
CHANGED
|
@@ -20718,6 +20718,7 @@ function createWindowsNamedPipe(cli, customPath) {
|
|
|
20718
20718
|
function createLinuxFifo(cli, customPath) {
|
|
20719
20719
|
let fifoPath = null;
|
|
20720
20720
|
let fifoStream = null;
|
|
20721
|
+
logger.debug(`[${cli}-yes] Creating Linux FIFO with customPath: ${customPath}`);
|
|
20721
20722
|
try {
|
|
20722
20723
|
if (customPath) {
|
|
20723
20724
|
fifoPath = customPath;
|
|
@@ -20726,12 +20727,19 @@ function createLinuxFifo(cli, customPath) {
|
|
|
20726
20727
|
const randomSuffix = Math.random().toString(36).substring(2, 5);
|
|
20727
20728
|
fifoPath = `/tmp/agent-yes-${timestamp}${randomSuffix}.stdin`;
|
|
20728
20729
|
}
|
|
20729
|
-
|
|
20730
|
-
|
|
20730
|
+
try {
|
|
20731
|
+
mkdirSync(dirname(fifoPath), { recursive: true });
|
|
20732
|
+
} catch (dirError) {
|
|
20733
|
+
logger.warn(`[${cli}-yes] Failed to create FIFO directory: ${dirError}`);
|
|
20734
|
+
return null;
|
|
20735
|
+
}
|
|
20736
|
+
const escapedPath = fifoPath.replace(/'/g, `'"'"'`);
|
|
20737
|
+
const mkfifoResult = execaCommandSync(`mkfifo '${escapedPath}'`, {
|
|
20731
20738
|
reject: false
|
|
20732
20739
|
});
|
|
20733
20740
|
if (mkfifoResult.exitCode !== 0) {
|
|
20734
20741
|
logger.warn(`[${cli}-yes] mkfifo command failed with exit code ${mkfifoResult.exitCode}`);
|
|
20742
|
+
logger.warn(`[${cli}-yes] Command: mkfifo '${escapedPath}'`);
|
|
20735
20743
|
if (mkfifoResult.stderr) {
|
|
20736
20744
|
logger.warn(`[${cli}-yes] mkfifo stderr: ${mkfifoResult.stderr}`);
|
|
20737
20745
|
}
|
|
@@ -21845,5 +21853,5 @@ export {
|
|
|
21845
21853
|
CLIS_CONFIG
|
|
21846
21854
|
};
|
|
21847
21855
|
|
|
21848
|
-
//# debugId=
|
|
21856
|
+
//# debugId=581E1D2585250E0F64756E2164756E21
|
|
21849
21857
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED