@funnycode/myclaude 0.1.110 → 0.1.111
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 +10 -5
- package/dist/myclaude.mjs +10 -5
- 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.111",
|
|
8
|
+
BUILD_TIME: "2026-07-20T14:57:42.003Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117491,7 +117491,7 @@ var package_default;
|
|
|
117491
117491
|
var init_package = __esm(() => {
|
|
117492
117492
|
package_default = {
|
|
117493
117493
|
name: "@funnycode/myclaude",
|
|
117494
|
-
version: "0.1.
|
|
117494
|
+
version: "0.1.111",
|
|
117495
117495
|
private: false,
|
|
117496
117496
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117497
117497
|
license: "MIT",
|
|
@@ -301206,13 +301206,18 @@ function memoizeWithTTL(fn, ttlMs) {
|
|
|
301206
301206
|
const memoized = memoize_default(fn);
|
|
301207
301207
|
const originalClear = memoized.cache.clear.bind(memoized.cache);
|
|
301208
301208
|
const pendingRefreshes = new Map;
|
|
301209
|
-
const
|
|
301209
|
+
const keyMutexes = new Map;
|
|
301210
301210
|
const wrapped = async (...args) => {
|
|
301211
301211
|
const now2 = Date.now();
|
|
301212
301212
|
const cacheExpired = lastCachedAt !== 0 && now2 - lastCachedAt >= ttlMs;
|
|
301213
301213
|
if (cacheExpired) {
|
|
301214
301214
|
const key2 = String(args[0] ?? "_default");
|
|
301215
|
-
|
|
301215
|
+
let keyMutex = keyMutexes.get(key2);
|
|
301216
|
+
if (!keyMutex) {
|
|
301217
|
+
keyMutex = new Mutex;
|
|
301218
|
+
keyMutexes.set(key2, keyMutex);
|
|
301219
|
+
}
|
|
301220
|
+
const release = await keyMutex.acquire();
|
|
301216
301221
|
try {
|
|
301217
301222
|
const existing = pendingRefreshes.get(key2);
|
|
301218
301223
|
if (existing) {
|
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.111",
|
|
8
|
+
BUILD_TIME: "2026-07-20T14:57:42.003Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117491,7 +117491,7 @@ var package_default;
|
|
|
117491
117491
|
var init_package = __esm(() => {
|
|
117492
117492
|
package_default = {
|
|
117493
117493
|
name: "@funnycode/myclaude",
|
|
117494
|
-
version: "0.1.
|
|
117494
|
+
version: "0.1.111",
|
|
117495
117495
|
private: false,
|
|
117496
117496
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117497
117497
|
license: "MIT",
|
|
@@ -301206,13 +301206,18 @@ function memoizeWithTTL(fn, ttlMs) {
|
|
|
301206
301206
|
const memoized = memoize_default(fn);
|
|
301207
301207
|
const originalClear = memoized.cache.clear.bind(memoized.cache);
|
|
301208
301208
|
const pendingRefreshes = new Map;
|
|
301209
|
-
const
|
|
301209
|
+
const keyMutexes = new Map;
|
|
301210
301210
|
const wrapped = async (...args) => {
|
|
301211
301211
|
const now2 = Date.now();
|
|
301212
301212
|
const cacheExpired = lastCachedAt !== 0 && now2 - lastCachedAt >= ttlMs;
|
|
301213
301213
|
if (cacheExpired) {
|
|
301214
301214
|
const key2 = String(args[0] ?? "_default");
|
|
301215
|
-
|
|
301215
|
+
let keyMutex = keyMutexes.get(key2);
|
|
301216
|
+
if (!keyMutex) {
|
|
301217
|
+
keyMutex = new Mutex;
|
|
301218
|
+
keyMutexes.set(key2, keyMutex);
|
|
301219
|
+
}
|
|
301220
|
+
const release = await keyMutex.acquire();
|
|
301216
301221
|
try {
|
|
301217
301222
|
const existing = pendingRefreshes.get(key2);
|
|
301218
301223
|
if (existing) {
|