@funnycode/myclaude 0.1.18 → 0.1.21
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/CHANGELOG.md +16 -0
- package/dist/myclaude.js +2418 -702
- package/dist/myclaude.mjs +48 -2
- package/package.json +1 -1
package/dist/myclaude.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-06-
|
|
7
|
+
VERSION: "0.1.21",
|
|
8
|
+
BUILD_TIME: "2026-06-15T13:49:09.465Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -347452,6 +347452,27 @@ import { access as access4 } from "fs/promises";
|
|
|
347452
347452
|
import { tmpdir as osTmpdir } from "os";
|
|
347453
347453
|
import { join as nativeJoin } from "path";
|
|
347454
347454
|
import { join as posixJoin } from "path/posix";
|
|
347455
|
+
function createSpawnSemaphore(maxConcurrent) {
|
|
347456
|
+
let active = 0;
|
|
347457
|
+
const queue2 = [];
|
|
347458
|
+
return {
|
|
347459
|
+
async acquire() {
|
|
347460
|
+
if (active >= maxConcurrent) {
|
|
347461
|
+
await new Promise((resolve29) => queue2.push(resolve29));
|
|
347462
|
+
}
|
|
347463
|
+
active++;
|
|
347464
|
+
},
|
|
347465
|
+
release() {
|
|
347466
|
+
active--;
|
|
347467
|
+
const next = queue2.shift();
|
|
347468
|
+
if (next)
|
|
347469
|
+
next();
|
|
347470
|
+
}
|
|
347471
|
+
};
|
|
347472
|
+
}
|
|
347473
|
+
function getBashSpawnSemaphore() {
|
|
347474
|
+
return BASH_SPAWN_SEMAPHORE;
|
|
347475
|
+
}
|
|
347455
347476
|
function getDisableExtglobCommand(shellPath) {
|
|
347456
347477
|
if (process.env.CLAUDE_CODE_SHELL_PREFIX) {
|
|
347457
347478
|
return "{ shopt -u extglob || setopt NO_EXTENDED_GLOB; } >/dev/null 2>&1 || true";
|
|
@@ -347545,6 +347566,15 @@ async function createBashShellProvider(shellPath, options) {
|
|
|
347545
347566
|
env5.CLAUDE_CODE_TMPDIR = posixTmpDir;
|
|
347546
347567
|
env5.TMPPREFIX = posixJoin(posixTmpDir, "zsh");
|
|
347547
347568
|
}
|
|
347569
|
+
if (getPlatform() === "windows") {
|
|
347570
|
+
if (!env5.MSYS2_ARG_CONV_EXCL)
|
|
347571
|
+
env5.MSYS2_ARG_CONV_EXCL = "*";
|
|
347572
|
+
if (!env5.CHERE_INVOKING)
|
|
347573
|
+
env5.CHERE_INVOKING = "1";
|
|
347574
|
+
if (!env5.MSYSTEM && process.env.MSYSTEM) {
|
|
347575
|
+
env5.MSYSTEM = process.env.MSYSTEM;
|
|
347576
|
+
}
|
|
347577
|
+
}
|
|
347548
347578
|
for (const [key2, value] of getSessionEnvVars()) {
|
|
347549
347579
|
env5[key2] = value;
|
|
347550
347580
|
}
|
|
@@ -347552,6 +347582,7 @@ async function createBashShellProvider(shellPath, options) {
|
|
|
347552
347582
|
}
|
|
347553
347583
|
};
|
|
347554
347584
|
}
|
|
347585
|
+
var BASH_SPAWN_SEMAPHORE;
|
|
347555
347586
|
var init_bashProvider = __esm(() => {
|
|
347556
347587
|
init_bashPipeCommand();
|
|
347557
347588
|
init_ShellSnapshot();
|
|
@@ -347564,6 +347595,7 @@ var init_bashProvider = __esm(() => {
|
|
|
347564
347595
|
init_sessionEnvVars();
|
|
347565
347596
|
init_tmuxSocket();
|
|
347566
347597
|
init_windowsPaths();
|
|
347598
|
+
BASH_SPAWN_SEMAPHORE = createSpawnSemaphore(getPlatform() === "windows" ? 24 : Infinity);
|
|
347567
347599
|
});
|
|
347568
347600
|
|
|
347569
347601
|
// src/utils/shell/powershellDetection.ts
|
|
@@ -347790,6 +347822,10 @@ async function exec3(command, abortSignal, shellType, options) {
|
|
|
347790
347822
|
const spawnBinary = isSandboxedPowerShell ? "/bin/sh" : binShell;
|
|
347791
347823
|
const shellArgs = isSandboxedPowerShell ? ["-c", commandString] : provider.getSpawnArgs(commandString);
|
|
347792
347824
|
const envOverrides = await provider.getEnvironmentOverrides(command);
|
|
347825
|
+
const isGitBash = shellType === "bash" && getPlatform() === "windows" && !isSandboxedPowerShell;
|
|
347826
|
+
if (isGitBash) {
|
|
347827
|
+
await getBashSpawnSemaphore().acquire();
|
|
347828
|
+
}
|
|
347793
347829
|
const usePipeMode = !!onStdout;
|
|
347794
347830
|
const taskId = generateTaskId("local_bash");
|
|
347795
347831
|
const taskOutput = new TaskOutput(taskId, onProgress ?? null, !usePipeMode);
|
|
@@ -347816,6 +347852,9 @@ async function exec3(command, abortSignal, shellType, options) {
|
|
|
347816
347852
|
detached: provider.detached,
|
|
347817
347853
|
windowsHide: true
|
|
347818
347854
|
});
|
|
347855
|
+
if (isGitBash) {
|
|
347856
|
+
childProcess.once("close", () => getBashSpawnSemaphore().release());
|
|
347857
|
+
}
|
|
347819
347858
|
const shellCommand = wrapSpawn(childProcess, abortSignal, commandTimeout, taskOutput, shouldAutoBackground);
|
|
347820
347859
|
if (outputHandle !== undefined) {
|
|
347821
347860
|
try {
|
|
@@ -347855,6 +347894,9 @@ async function exec3(command, abortSignal, shellType, options) {
|
|
|
347855
347894
|
});
|
|
347856
347895
|
return shellCommand;
|
|
347857
347896
|
} catch (error49) {
|
|
347897
|
+
if (isGitBash) {
|
|
347898
|
+
getBashSpawnSemaphore().release();
|
|
347899
|
+
}
|
|
347858
347900
|
if (outputHandle !== undefined) {
|
|
347859
347901
|
try {
|
|
347860
347902
|
await outputHandle.close();
|
|
@@ -475901,6 +475943,8 @@ var init_achievements2 = __esm(() => {
|
|
|
475901
475943
|
name: "achievements",
|
|
475902
475944
|
description: "View your unlocked achievements and progress",
|
|
475903
475945
|
aliases: ["achieve", "ach"],
|
|
475946
|
+
supportsNonInteractive: false,
|
|
475947
|
+
type: "local",
|
|
475904
475948
|
load: () => Promise.resolve().then(() => (init_achievements(), exports_achievements))
|
|
475905
475949
|
};
|
|
475906
475950
|
achievements_default = achievementsCmd;
|
|
@@ -476351,6 +476395,8 @@ var init_mystats2 = __esm(() => {
|
|
|
476351
476395
|
name: "mystats",
|
|
476352
476396
|
description: "View your coding statistics and usage dashboard",
|
|
476353
476397
|
aliases: ["stats", "dashboard"],
|
|
476398
|
+
supportsNonInteractive: false,
|
|
476399
|
+
type: "local",
|
|
476354
476400
|
load: () => Promise.resolve().then(() => (init_mystats(), exports_mystats))
|
|
476355
476401
|
};
|
|
476356
476402
|
mystats_default = mystatsCmd;
|