@funnycode/myclaude 0.1.53 → 0.1.55
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/myclaude.js +9 -6
- package/dist/myclaude.mjs +9 -6
- package/package.json +1 -1
package/dist/myclaude.js
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.55",
|
|
8
|
+
BUILD_TIME: "2026-06-29T13:09:38.004Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -347605,7 +347605,7 @@ var init_bashProvider = __esm(() => {
|
|
|
347605
347605
|
init_sessionEnvVars();
|
|
347606
347606
|
init_tmuxSocket();
|
|
347607
347607
|
init_windowsPaths();
|
|
347608
|
-
BASH_SPAWN_SEMAPHORE = createSpawnSemaphore(getPlatform() === "windows" ?
|
|
347608
|
+
BASH_SPAWN_SEMAPHORE = createSpawnSemaphore(getPlatform() === "windows" ? 4 : Infinity);
|
|
347609
347609
|
});
|
|
347610
347610
|
|
|
347611
347611
|
// src/utils/shell/powershellDetection.ts
|
|
@@ -347778,7 +347778,8 @@ async function findSuitableShell() {
|
|
|
347778
347778
|
}
|
|
347779
347779
|
async function getShellConfigImpl() {
|
|
347780
347780
|
const binShell = await findSuitableShell();
|
|
347781
|
-
const
|
|
347781
|
+
const isWindows2 = getPlatform() === "windows";
|
|
347782
|
+
const provider = await createBashShellProvider(binShell, { skipSnapshot: isWindows2 });
|
|
347782
347783
|
return { provider };
|
|
347783
347784
|
}
|
|
347784
347785
|
async function exec3(command, abortSignal, shellType, options) {
|
|
@@ -347833,8 +347834,8 @@ async function exec3(command, abortSignal, shellType, options) {
|
|
|
347833
347834
|
const shellArgs = isSandboxedPowerShell ? ["-c", commandString] : provider.getSpawnArgs(commandString);
|
|
347834
347835
|
const envOverrides = await provider.getEnvironmentOverrides(command);
|
|
347835
347836
|
const isGitBash = shellType === "bash" && getPlatform() === "windows" && !isSandboxedPowerShell;
|
|
347836
|
-
const MAX_GITBASH_RETRIES =
|
|
347837
|
-
const GITBASH_RETRY_BASE_MS =
|
|
347837
|
+
const MAX_GITBASH_RETRIES = 5;
|
|
347838
|
+
const GITBASH_RETRY_BASE_MS = 1000;
|
|
347838
347839
|
function isGitBashPtyExhaustion(err2) {
|
|
347839
347840
|
const msg = errorMessage(err2).toLowerCase();
|
|
347840
347841
|
return msg.includes("no available terminals") || msg.includes("cannot fork") || msg.includes("resource temporarily unavailable");
|
|
@@ -565080,6 +565081,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
565080
565081
|
const scheduleProactiveTick = undefined;
|
|
565081
565082
|
subscribeToCommandQueue(() => {
|
|
565082
565083
|
if (abortController && getCommandsByMaxPriority("now").length > 0) {
|
|
565084
|
+
logForDebugging("[print.ts] Interrupting turn due to priority command");
|
|
565083
565085
|
abortController.abort("interrupt");
|
|
565084
565086
|
}
|
|
565085
565087
|
});
|
|
@@ -566245,6 +566247,7 @@ ${m2.text}
|
|
|
566245
566247
|
structuredIO.injectControlResponse(response);
|
|
566246
566248
|
},
|
|
566247
566249
|
onInterrupt() {
|
|
566250
|
+
logForDebugging("[print.ts] Turn interrupted via bridge onInterrupt");
|
|
566248
566251
|
abortController?.abort();
|
|
566249
566252
|
},
|
|
566250
566253
|
onSetModel(model) {
|
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.55",
|
|
8
|
+
BUILD_TIME: "2026-06-29T13:09:38.004Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -347605,7 +347605,7 @@ var init_bashProvider = __esm(() => {
|
|
|
347605
347605
|
init_sessionEnvVars();
|
|
347606
347606
|
init_tmuxSocket();
|
|
347607
347607
|
init_windowsPaths();
|
|
347608
|
-
BASH_SPAWN_SEMAPHORE = createSpawnSemaphore(getPlatform() === "windows" ?
|
|
347608
|
+
BASH_SPAWN_SEMAPHORE = createSpawnSemaphore(getPlatform() === "windows" ? 4 : Infinity);
|
|
347609
347609
|
});
|
|
347610
347610
|
|
|
347611
347611
|
// src/utils/shell/powershellDetection.ts
|
|
@@ -347778,7 +347778,8 @@ async function findSuitableShell() {
|
|
|
347778
347778
|
}
|
|
347779
347779
|
async function getShellConfigImpl() {
|
|
347780
347780
|
const binShell = await findSuitableShell();
|
|
347781
|
-
const
|
|
347781
|
+
const isWindows2 = getPlatform() === "windows";
|
|
347782
|
+
const provider = await createBashShellProvider(binShell, { skipSnapshot: isWindows2 });
|
|
347782
347783
|
return { provider };
|
|
347783
347784
|
}
|
|
347784
347785
|
async function exec3(command, abortSignal, shellType, options) {
|
|
@@ -347833,8 +347834,8 @@ async function exec3(command, abortSignal, shellType, options) {
|
|
|
347833
347834
|
const shellArgs = isSandboxedPowerShell ? ["-c", commandString] : provider.getSpawnArgs(commandString);
|
|
347834
347835
|
const envOverrides = await provider.getEnvironmentOverrides(command);
|
|
347835
347836
|
const isGitBash = shellType === "bash" && getPlatform() === "windows" && !isSandboxedPowerShell;
|
|
347836
|
-
const MAX_GITBASH_RETRIES =
|
|
347837
|
-
const GITBASH_RETRY_BASE_MS =
|
|
347837
|
+
const MAX_GITBASH_RETRIES = 5;
|
|
347838
|
+
const GITBASH_RETRY_BASE_MS = 1000;
|
|
347838
347839
|
function isGitBashPtyExhaustion(err2) {
|
|
347839
347840
|
const msg = errorMessage(err2).toLowerCase();
|
|
347840
347841
|
return msg.includes("no available terminals") || msg.includes("cannot fork") || msg.includes("resource temporarily unavailable");
|
|
@@ -565080,6 +565081,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
565080
565081
|
const scheduleProactiveTick = undefined;
|
|
565081
565082
|
subscribeToCommandQueue(() => {
|
|
565082
565083
|
if (abortController && getCommandsByMaxPriority("now").length > 0) {
|
|
565084
|
+
logForDebugging("[print.ts] Interrupting turn due to priority command");
|
|
565083
565085
|
abortController.abort("interrupt");
|
|
565084
565086
|
}
|
|
565085
565087
|
});
|
|
@@ -566245,6 +566247,7 @@ ${m2.text}
|
|
|
566245
566247
|
structuredIO.injectControlResponse(response);
|
|
566246
566248
|
},
|
|
566247
566249
|
onInterrupt() {
|
|
566250
|
+
logForDebugging("[print.ts] Turn interrupted via bridge onInterrupt");
|
|
566248
566251
|
abortController?.abort();
|
|
566249
566252
|
},
|
|
566250
566253
|
onSetModel(model) {
|