@funnycode/myclaude 0.1.87 → 0.1.88
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 +20 -9
- package/dist/myclaude.mjs +20 -9
- 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.88",
|
|
8
|
+
BUILD_TIME: "2026-07-17T10:35:59.798Z",
|
|
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.88",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -342061,6 +342061,14 @@ function getOrCreateSequentialAppend(sessionId) {
|
|
|
342061
342061
|
}
|
|
342062
342062
|
return sequentialAppend;
|
|
342063
342063
|
}
|
|
342064
|
+
function getOrCreateSequentialFetch(sessionId) {
|
|
342065
|
+
let sequentialFetch = sequentialFetchBySession.get(sessionId);
|
|
342066
|
+
if (!sequentialFetch) {
|
|
342067
|
+
sequentialFetch = sequential(async (sid, url3, headers) => await fetchSessionLogsFromUrl(sid, url3, headers));
|
|
342068
|
+
sequentialFetchBySession.set(sessionId, sequentialFetch);
|
|
342069
|
+
}
|
|
342070
|
+
return sequentialFetch;
|
|
342071
|
+
}
|
|
342064
342072
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342065
342073
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
342066
342074
|
try {
|
|
@@ -342090,7 +342098,8 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342090
342098
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342091
342099
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342092
342100
|
} else {
|
|
342093
|
-
const
|
|
342101
|
+
const sequentialFetch = getOrCreateSequentialFetch(sessionId);
|
|
342102
|
+
const logs2 = await sequentialFetch(sessionId, url3, headers);
|
|
342094
342103
|
const adoptedUuid = findLastUuid(logs2);
|
|
342095
342104
|
if (adoptedUuid) {
|
|
342096
342105
|
lastUuidMap.set(sessionId, adoptedUuid);
|
|
@@ -342309,8 +342318,9 @@ function findLastUuid(logs2) {
|
|
|
342309
342318
|
function clearAllSessions() {
|
|
342310
342319
|
lastUuidMap.clear();
|
|
342311
342320
|
sequentialAppendBySession.clear();
|
|
342321
|
+
sequentialFetchBySession.clear();
|
|
342312
342322
|
}
|
|
342313
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession;
|
|
342323
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession, sequentialFetchBySession;
|
|
342314
342324
|
var init_sessionIngress = __esm(() => {
|
|
342315
342325
|
init_axios2();
|
|
342316
342326
|
init_oauth();
|
|
@@ -342323,6 +342333,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342323
342333
|
init_api2();
|
|
342324
342334
|
lastUuidMap = new Map;
|
|
342325
342335
|
sequentialAppendBySession = new Map;
|
|
342336
|
+
sequentialFetchBySession = new Map;
|
|
342326
342337
|
});
|
|
342327
342338
|
|
|
342328
342339
|
// src/utils/fileHistory.ts
|
|
@@ -453585,14 +453596,14 @@ function getCachedRemainingPasses() {
|
|
|
453585
453596
|
return cachedEntry?.remaining_passes ?? null;
|
|
453586
453597
|
}
|
|
453587
453598
|
async function fetchAndStorePassesEligibility() {
|
|
453588
|
-
if (fetchInProgress) {
|
|
453589
|
-
logForDebugging("Passes: Reusing in-flight eligibility fetch");
|
|
453590
|
-
return fetchInProgress;
|
|
453591
|
-
}
|
|
453592
453599
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
453593
453600
|
if (!orgId) {
|
|
453594
453601
|
return null;
|
|
453595
453602
|
}
|
|
453603
|
+
if (fetchInProgress) {
|
|
453604
|
+
logForDebugging("Passes: Reusing in-flight eligibility fetch");
|
|
453605
|
+
return fetchInProgress;
|
|
453606
|
+
}
|
|
453596
453607
|
fetchInProgress = (async () => {
|
|
453597
453608
|
try {
|
|
453598
453609
|
const response = await fetchReferralEligibility();
|
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.88",
|
|
8
|
+
BUILD_TIME: "2026-07-17T10:35:59.798Z",
|
|
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.88",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -342061,6 +342061,14 @@ function getOrCreateSequentialAppend(sessionId) {
|
|
|
342061
342061
|
}
|
|
342062
342062
|
return sequentialAppend;
|
|
342063
342063
|
}
|
|
342064
|
+
function getOrCreateSequentialFetch(sessionId) {
|
|
342065
|
+
let sequentialFetch = sequentialFetchBySession.get(sessionId);
|
|
342066
|
+
if (!sequentialFetch) {
|
|
342067
|
+
sequentialFetch = sequential(async (sid, url3, headers) => await fetchSessionLogsFromUrl(sid, url3, headers));
|
|
342068
|
+
sequentialFetchBySession.set(sessionId, sequentialFetch);
|
|
342069
|
+
}
|
|
342070
|
+
return sequentialFetch;
|
|
342071
|
+
}
|
|
342064
342072
|
async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
342065
342073
|
for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
|
|
342066
342074
|
try {
|
|
@@ -342090,7 +342098,8 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342090
342098
|
lastUuidMap.set(sessionId, serverLastUuid);
|
|
342091
342099
|
logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
|
|
342092
342100
|
} else {
|
|
342093
|
-
const
|
|
342101
|
+
const sequentialFetch = getOrCreateSequentialFetch(sessionId);
|
|
342102
|
+
const logs2 = await sequentialFetch(sessionId, url3, headers);
|
|
342094
342103
|
const adoptedUuid = findLastUuid(logs2);
|
|
342095
342104
|
if (adoptedUuid) {
|
|
342096
342105
|
lastUuidMap.set(sessionId, adoptedUuid);
|
|
@@ -342309,8 +342318,9 @@ function findLastUuid(logs2) {
|
|
|
342309
342318
|
function clearAllSessions() {
|
|
342310
342319
|
lastUuidMap.clear();
|
|
342311
342320
|
sequentialAppendBySession.clear();
|
|
342321
|
+
sequentialFetchBySession.clear();
|
|
342312
342322
|
}
|
|
342313
|
-
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession;
|
|
342323
|
+
var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession, sequentialFetchBySession;
|
|
342314
342324
|
var init_sessionIngress = __esm(() => {
|
|
342315
342325
|
init_axios2();
|
|
342316
342326
|
init_oauth();
|
|
@@ -342323,6 +342333,7 @@ var init_sessionIngress = __esm(() => {
|
|
|
342323
342333
|
init_api2();
|
|
342324
342334
|
lastUuidMap = new Map;
|
|
342325
342335
|
sequentialAppendBySession = new Map;
|
|
342336
|
+
sequentialFetchBySession = new Map;
|
|
342326
342337
|
});
|
|
342327
342338
|
|
|
342328
342339
|
// src/utils/fileHistory.ts
|
|
@@ -453585,14 +453596,14 @@ function getCachedRemainingPasses() {
|
|
|
453585
453596
|
return cachedEntry?.remaining_passes ?? null;
|
|
453586
453597
|
}
|
|
453587
453598
|
async function fetchAndStorePassesEligibility() {
|
|
453588
|
-
if (fetchInProgress) {
|
|
453589
|
-
logForDebugging("Passes: Reusing in-flight eligibility fetch");
|
|
453590
|
-
return fetchInProgress;
|
|
453591
|
-
}
|
|
453592
453599
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
453593
453600
|
if (!orgId) {
|
|
453594
453601
|
return null;
|
|
453595
453602
|
}
|
|
453603
|
+
if (fetchInProgress) {
|
|
453604
|
+
logForDebugging("Passes: Reusing in-flight eligibility fetch");
|
|
453605
|
+
return fetchInProgress;
|
|
453606
|
+
}
|
|
453596
453607
|
fetchInProgress = (async () => {
|
|
453597
453608
|
try {
|
|
453598
453609
|
const response = await fetchReferralEligibility();
|