@funnycode/myclaude 0.1.93 → 0.1.94
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 +27 -27
- package/dist/myclaude.mjs +27 -27
- 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.94",
|
|
8
|
+
BUILD_TIME: "2026-07-18T06:27:57.445Z",
|
|
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.94",
|
|
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 {
|
|
@@ -342326,21 +342328,21 @@ var init_KeybindingProviderSetup = __esm(() => {
|
|
|
342326
342328
|
});
|
|
342327
342329
|
|
|
342328
342330
|
// src/services/api/sessionIngress.ts
|
|
342329
|
-
function
|
|
342330
|
-
let
|
|
342331
|
-
if (!
|
|
342332
|
-
|
|
342333
|
-
|
|
342334
|
-
|
|
342335
|
-
|
|
342336
|
-
}
|
|
342337
|
-
|
|
342338
|
-
|
|
342339
|
-
|
|
342340
|
-
|
|
342341
|
-
|
|
342331
|
+
function getOrCreateSequential(sessionId) {
|
|
342332
|
+
let wrapper = sequentialBySession.get(sessionId);
|
|
342333
|
+
if (!wrapper) {
|
|
342334
|
+
wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
|
|
342335
|
+
if (isFetch) {
|
|
342336
|
+
const sid = entryOrSid;
|
|
342337
|
+
return await fetchSessionLogsFromUrl(sid, url3, headers);
|
|
342338
|
+
} else {
|
|
342339
|
+
const entry = entryOrSid;
|
|
342340
|
+
return await appendSessionLogImpl(sessionId, entry, url3, headers);
|
|
342341
|
+
}
|
|
342342
|
+
});
|
|
342343
|
+
sequentialBySession.set(sessionId, wrapper);
|
|
342342
342344
|
}
|
|
342343
|
-
return
|
|
342345
|
+
return wrapper;
|
|
342344
342346
|
}
|
|
342345
342347
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342346
342348
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
@@ -342371,10 +342373,10 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342371
342373
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342372
342374
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342373
342375
|
} else {
|
|
342374
|
-
const
|
|
342376
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342375
342377
|
let logs2 = null;
|
|
342376
342378
|
try {
|
|
342377
|
-
logs2 = await
|
|
342379
|
+
logs2 = await sequential2(sessionId, url3, headers, true);
|
|
342378
342380
|
} catch (fetchError) {
|
|
342379
342381
|
logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
|
|
342380
342382
|
logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
|
|
@@ -342432,8 +342434,8 @@ async function appendSessionLog(sessionId, entry, url3) {
|
|
|
342432
342434
|
Authorization: `Bearer ${sessionToken}`,
|
|
342433
342435
|
"Content-Type": "application/json"
|
|
342434
342436
|
};
|
|
342435
|
-
const
|
|
342436
|
-
return
|
|
342437
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342438
|
+
return sequential2(entry, url3, headers, false);
|
|
342437
342439
|
}
|
|
342438
342440
|
async function getSessionLogs(sessionId, url3) {
|
|
342439
342441
|
const sessionToken = getSessionIngressAuthToken();
|
|
@@ -342594,10 +342596,9 @@ function findLastUuid(logs2) {
|
|
|
342594
342596
|
}
|
|
342595
342597
|
function clearAllSessions() {
|
|
342596
342598
|
lastUuidMap.clear();
|
|
342597
|
-
|
|
342598
|
-
sequentialFetchBySession.clear();
|
|
342599
|
+
sequentialBySession.clear();
|
|
342599
342600
|
}
|
|
342600
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500,
|
|
342601
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342601
342602
|
var init_sessionIngress = __esm(() => {
|
|
342602
342603
|
init_axios2();
|
|
342603
342604
|
init_oauth();
|
|
@@ -342609,8 +342610,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342609
342610
|
init_slowOperations();
|
|
342610
342611
|
init_api2();
|
|
342611
342612
|
lastUuidMap = new Map;
|
|
342612
|
-
|
|
342613
|
-
sequentialFetchBySession = new Map;
|
|
342613
|
+
sequentialBySession = new Map;
|
|
342614
342614
|
});
|
|
342615
342615
|
|
|
342616
342616
|
// 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.94",
|
|
8
|
+
BUILD_TIME: "2026-07-18T06:27:57.445Z",
|
|
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.94",
|
|
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 {
|
|
@@ -342326,21 +342328,21 @@ var init_KeybindingProviderSetup = __esm(() => {
|
|
|
342326
342328
|
});
|
|
342327
342329
|
|
|
342328
342330
|
// src/services/api/sessionIngress.ts
|
|
342329
|
-
function
|
|
342330
|
-
let
|
|
342331
|
-
if (!
|
|
342332
|
-
|
|
342333
|
-
|
|
342334
|
-
|
|
342335
|
-
|
|
342336
|
-
}
|
|
342337
|
-
|
|
342338
|
-
|
|
342339
|
-
|
|
342340
|
-
|
|
342341
|
-
|
|
342331
|
+
function getOrCreateSequential(sessionId) {
|
|
342332
|
+
let wrapper = sequentialBySession.get(sessionId);
|
|
342333
|
+
if (!wrapper) {
|
|
342334
|
+
wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
|
|
342335
|
+
if (isFetch) {
|
|
342336
|
+
const sid = entryOrSid;
|
|
342337
|
+
return await fetchSessionLogsFromUrl(sid, url3, headers);
|
|
342338
|
+
} else {
|
|
342339
|
+
const entry = entryOrSid;
|
|
342340
|
+
return await appendSessionLogImpl(sessionId, entry, url3, headers);
|
|
342341
|
+
}
|
|
342342
|
+
});
|
|
342343
|
+
sequentialBySession.set(sessionId, wrapper);
|
|
342342
342344
|
}
|
|
342343
|
-
return
|
|
342345
|
+
return wrapper;
|
|
342344
342346
|
}
|
|
342345
342347
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342346
342348
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
@@ -342371,10 +342373,10 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342371
342373
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342372
342374
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342373
342375
|
} else {
|
|
342374
|
-
const
|
|
342376
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342375
342377
|
let logs2 = null;
|
|
342376
342378
|
try {
|
|
342377
|
-
logs2 = await
|
|
342379
|
+
logs2 = await sequential2(sessionId, url3, headers, true);
|
|
342378
342380
|
} catch (fetchError) {
|
|
342379
342381
|
logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
|
|
342380
342382
|
logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
|
|
@@ -342432,8 +342434,8 @@ async function appendSessionLog(sessionId, entry, url3) {
|
|
|
342432
342434
|
Authorization: `Bearer ${sessionToken}`,
|
|
342433
342435
|
"Content-Type": "application/json"
|
|
342434
342436
|
};
|
|
342435
|
-
const
|
|
342436
|
-
return
|
|
342437
|
+
const sequential2 = getOrCreateSequential(sessionId);
|
|
342438
|
+
return sequential2(entry, url3, headers, false);
|
|
342437
342439
|
}
|
|
342438
342440
|
async function getSessionLogs(sessionId, url3) {
|
|
342439
342441
|
const sessionToken = getSessionIngressAuthToken();
|
|
@@ -342594,10 +342596,9 @@ function findLastUuid(logs2) {
|
|
|
342594
342596
|
}
|
|
342595
342597
|
function clearAllSessions() {
|
|
342596
342598
|
lastUuidMap.clear();
|
|
342597
|
-
|
|
342598
|
-
sequentialFetchBySession.clear();
|
|
342599
|
+
sequentialBySession.clear();
|
|
342599
342600
|
}
|
|
342600
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500,
|
|
342601
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342601
342602
|
var init_sessionIngress = __esm(() => {
|
|
342602
342603
|
init_axios2();
|
|
342603
342604
|
init_oauth();
|
|
@@ -342609,8 +342610,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342609
342610
|
init_slowOperations();
|
|
342610
342611
|
init_api2();
|
|
342611
342612
|
lastUuidMap = new Map;
|
|
342612
|
-
|
|
342613
|
-
sequentialFetchBySession = new Map;
|
|
342613
|
+
sequentialBySession = new Map;
|
|
342614
342614
|
});
|
|
342615
342615
|
|
|
342616
342616
|
// src/utils/fileHistory.ts
|