@funnycode/myclaude 0.1.93 → 0.1.95
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 +29 -28
- package/dist/myclaude.mjs +29 -28
- 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-07-
|
|
7
|
+
VERSION: "0.1.95",
|
|
8
|
+
BUILD_TIME: "2026-07-18T09:09:23.186Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117484,7 +117484,7 @@ var package_default;
|
|
|
117484
117484
|
var init_package = __esm(() => {
|
|
117485
117485
|
package_default = {
|
|
117486
117486
|
name: "@funnycode/myclaude",
|
|
117487
|
-
version: "0.1.
|
|
117487
|
+
version: "0.1.95",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -210439,6 +210439,8 @@ function initFingerprint(req) {
|
|
|
210439
210439
|
return `${req.model}|${toolNames}|${sysLen}`;
|
|
210440
210440
|
}
|
|
210441
210441
|
async function dumpRequest(body, ts, state, filePath) {
|
|
210442
|
+
if (false)
|
|
210443
|
+
;
|
|
210442
210444
|
try {
|
|
210443
210445
|
const req = jsonParse(body);
|
|
210444
210446
|
addApiRequestToCache(req);
|
|
@@ -210500,7 +210502,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210500
210502
|
});
|
|
210501
210503
|
}
|
|
210502
210504
|
const response = await globalThis.fetch(input, init2);
|
|
210503
|
-
if (timestamp && response.ok && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
|
|
210505
|
+
if (timestamp && response.ok && true && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
|
|
210504
210506
|
const cloned = response.clone();
|
|
210505
210507
|
(async () => {
|
|
210506
210508
|
try {
|
|
@@ -210580,7 +210582,9 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210580
210582
|
} catch {}
|
|
210581
210583
|
}
|
|
210582
210584
|
})().catch((err2) => {
|
|
210583
|
-
|
|
210585
|
+
try {
|
|
210586
|
+
logForDebugging(`dumpPrompts.response handler unhandled rejection: ${err2}`, { level: "error" });
|
|
210587
|
+
} catch {}
|
|
210584
210588
|
});
|
|
210585
210589
|
}
|
|
210586
210590
|
return response;
|
|
@@ -342326,21 +342330,21 @@ var init_KeybindingProviderSetup = __esm(() => {
|
|
|
342326
342330
|
});
|
|
342327
342331
|
|
|
342328
342332
|
// src/services/api/sessionIngress.ts
|
|
342329
|
-
function
|
|
342330
|
-
let
|
|
342331
|
-
if (!
|
|
342332
|
-
|
|
342333
|
-
|
|
342334
|
-
|
|
342335
|
-
|
|
342336
|
-
}
|
|
342337
|
-
|
|
342338
|
-
|
|
342339
|
-
|
|
342340
|
-
|
|
342341
|
-
|
|
342333
|
+
function getOrCreateSequential(sessionId) {
|
|
342334
|
+
let wrapper = sequentialBySession.get(sessionId);
|
|
342335
|
+
if (!wrapper) {
|
|
342336
|
+
wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
|
|
342337
|
+
if (isFetch) {
|
|
342338
|
+
const sid = entryOrSid;
|
|
342339
|
+
return await fetchSessionLogsFromUrl(sid, url3, headers);
|
|
342340
|
+
} else {
|
|
342341
|
+
const entry = entryOrSid;
|
|
342342
|
+
return await appendSessionLogImpl(sessionId, entry, url3, headers);
|
|
342343
|
+
}
|
|
342344
|
+
});
|
|
342345
|
+
sequentialBySession.set(sessionId, wrapper);
|
|
342342
342346
|
}
|
|
342343
|
-
return
|
|
342347
|
+
return wrapper;
|
|
342344
342348
|
}
|
|
342345
342349
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342346
342350
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
@@ -342371,10 +342375,9 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342371
342375
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342372
342376
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342373
342377
|
} else {
|
|
342374
|
-
const sequentialFetch = getOrCreateSequentialFetch(sessionId);
|
|
342375
342378
|
let logs2 = null;
|
|
342376
342379
|
try {
|
|
342377
|
-
logs2 = await
|
|
342380
|
+
logs2 = await fetchSessionLogsFromUrl(sessionId, url3, headers);
|
|
342378
342381
|
} catch (fetchError) {
|
|
342379
342382
|
logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
|
|
342380
342383
|
logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
|
|
@@ -342432,8 +342435,8 @@ async function appendSessionLog(sessionId, entry, url3) {
|
|
|
342432
342435
|
Authorization: `Bearer ${sessionToken}`,
|
|
342433
342436
|
"Content-Type": "application/json"
|
|
342434
342437
|
};
|
|
342435
|
-
const
|
|
342436
|
-
return
|
|
342438
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342439
|
+
return sequential2(entry, url3, headers, false);
|
|
342437
342440
|
}
|
|
342438
342441
|
async function getSessionLogs(sessionId, url3) {
|
|
342439
342442
|
const sessionToken = getSessionIngressAuthToken();
|
|
@@ -342594,10 +342597,9 @@ function findLastUuid(logs2) {
|
|
|
342594
342597
|
}
|
|
342595
342598
|
function clearAllSessions() {
|
|
342596
342599
|
lastUuidMap.clear();
|
|
342597
|
-
|
|
342598
|
-
sequentialFetchBySession.clear();
|
|
342600
|
+
sequentialBySession.clear();
|
|
342599
342601
|
}
|
|
342600
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500,
|
|
342602
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342601
342603
|
var init_sessionIngress = __esm(() => {
|
|
342602
342604
|
init_axios2();
|
|
342603
342605
|
init_oauth();
|
|
@@ -342609,8 +342611,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342609
342611
|
init_slowOperations();
|
|
342610
342612
|
init_api2();
|
|
342611
342613
|
lastUuidMap = new Map;
|
|
342612
|
-
|
|
342613
|
-
sequentialFetchBySession = new Map;
|
|
342614
|
+
sequentialBySession = new Map;
|
|
342614
342615
|
});
|
|
342615
342616
|
|
|
342616
342617
|
// src/utils/fileHistory.ts
|
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-07-
|
|
7
|
+
VERSION: "0.1.95",
|
|
8
|
+
BUILD_TIME: "2026-07-18T09:09:23.186Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117484,7 +117484,7 @@ var package_default;
|
|
|
117484
117484
|
var init_package = __esm(() => {
|
|
117485
117485
|
package_default = {
|
|
117486
117486
|
name: "@funnycode/myclaude",
|
|
117487
|
-
version: "0.1.
|
|
117487
|
+
version: "0.1.95",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -210439,6 +210439,8 @@ function initFingerprint(req) {
|
|
|
210439
210439
|
return `${req.model}|${toolNames}|${sysLen}`;
|
|
210440
210440
|
}
|
|
210441
210441
|
async function dumpRequest(body, ts, state, filePath) {
|
|
210442
|
+
if (false)
|
|
210443
|
+
;
|
|
210442
210444
|
try {
|
|
210443
210445
|
const req = jsonParse(body);
|
|
210444
210446
|
addApiRequestToCache(req);
|
|
@@ -210500,7 +210502,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210500
210502
|
});
|
|
210501
210503
|
}
|
|
210502
210504
|
const response = await globalThis.fetch(input, init2);
|
|
210503
|
-
if (timestamp && response.ok && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
|
|
210505
|
+
if (timestamp && response.ok && true && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
|
|
210504
210506
|
const cloned = response.clone();
|
|
210505
210507
|
(async () => {
|
|
210506
210508
|
try {
|
|
@@ -210580,7 +210582,9 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210580
210582
|
} catch {}
|
|
210581
210583
|
}
|
|
210582
210584
|
})().catch((err2) => {
|
|
210583
|
-
|
|
210585
|
+
try {
|
|
210586
|
+
logForDebugging(`dumpPrompts.response handler unhandled rejection: ${err2}`, { level: "error" });
|
|
210587
|
+
} catch {}
|
|
210584
210588
|
});
|
|
210585
210589
|
}
|
|
210586
210590
|
return response;
|
|
@@ -342326,21 +342330,21 @@ var init_KeybindingProviderSetup = __esm(() => {
|
|
|
342326
342330
|
});
|
|
342327
342331
|
|
|
342328
342332
|
// src/services/api/sessionIngress.ts
|
|
342329
|
-
function
|
|
342330
|
-
let
|
|
342331
|
-
if (!
|
|
342332
|
-
|
|
342333
|
-
|
|
342334
|
-
|
|
342335
|
-
|
|
342336
|
-
}
|
|
342337
|
-
|
|
342338
|
-
|
|
342339
|
-
|
|
342340
|
-
|
|
342341
|
-
|
|
342333
|
+
function getOrCreateSequential(sessionId) {
|
|
342334
|
+
let wrapper = sequentialBySession.get(sessionId);
|
|
342335
|
+
if (!wrapper) {
|
|
342336
|
+
wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
|
|
342337
|
+
if (isFetch) {
|
|
342338
|
+
const sid = entryOrSid;
|
|
342339
|
+
return await fetchSessionLogsFromUrl(sid, url3, headers);
|
|
342340
|
+
} else {
|
|
342341
|
+
const entry = entryOrSid;
|
|
342342
|
+
return await appendSessionLogImpl(sessionId, entry, url3, headers);
|
|
342343
|
+
}
|
|
342344
|
+
});
|
|
342345
|
+
sequentialBySession.set(sessionId, wrapper);
|
|
342342
342346
|
}
|
|
342343
|
-
return
|
|
342347
|
+
return wrapper;
|
|
342344
342348
|
}
|
|
342345
342349
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342346
342350
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
@@ -342371,10 +342375,9 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342371
342375
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342372
342376
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342373
342377
|
} else {
|
|
342374
|
-
const sequentialFetch = getOrCreateSequentialFetch(sessionId);
|
|
342375
342378
|
let logs2 = null;
|
|
342376
342379
|
try {
|
|
342377
|
-
logs2 = await
|
|
342380
|
+
logs2 = await fetchSessionLogsFromUrl(sessionId, url3, headers);
|
|
342378
342381
|
} catch (fetchError) {
|
|
342379
342382
|
logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
|
|
342380
342383
|
logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
|
|
@@ -342432,8 +342435,8 @@ async function appendSessionLog(sessionId, entry, url3) {
|
|
|
342432
342435
|
Authorization: `Bearer ${sessionToken}`,
|
|
342433
342436
|
"Content-Type": "application/json"
|
|
342434
342437
|
};
|
|
342435
|
-
const
|
|
342436
|
-
return
|
|
342438
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342439
|
+
return sequential2(entry, url3, headers, false);
|
|
342437
342440
|
}
|
|
342438
342441
|
async function getSessionLogs(sessionId, url3) {
|
|
342439
342442
|
const sessionToken = getSessionIngressAuthToken();
|
|
@@ -342594,10 +342597,9 @@ function findLastUuid(logs2) {
|
|
|
342594
342597
|
}
|
|
342595
342598
|
function clearAllSessions() {
|
|
342596
342599
|
lastUuidMap.clear();
|
|
342597
|
-
|
|
342598
|
-
sequentialFetchBySession.clear();
|
|
342600
|
+
sequentialBySession.clear();
|
|
342599
342601
|
}
|
|
342600
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500,
|
|
342602
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342601
342603
|
var init_sessionIngress = __esm(() => {
|
|
342602
342604
|
init_axios2();
|
|
342603
342605
|
init_oauth();
|
|
@@ -342609,8 +342611,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342609
342611
|
init_slowOperations();
|
|
342610
342612
|
init_api2();
|
|
342611
342613
|
lastUuidMap = new Map;
|
|
342612
|
-
|
|
342613
|
-
sequentialFetchBySession = new Map;
|
|
342614
|
+
sequentialBySession = new Map;
|
|
342614
342615
|
});
|
|
342615
342616
|
|
|
342616
342617
|
// src/utils/fileHistory.ts
|