@funnycode/myclaude 0.1.90 → 0.1.91
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 +18 -15
- package/dist/myclaude.mjs +18 -15
- 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.91",
|
|
8
|
+
BUILD_TIME: "2026-07-17T20:20:49.267Z",
|
|
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.91",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -210163,7 +210163,7 @@ function enqueueDumpRequest(agentIdOrSessionId, callback) {
|
|
|
210163
210163
|
processQueue(agentIdOrSessionId);
|
|
210164
210164
|
}
|
|
210165
210165
|
}
|
|
210166
|
-
function processQueue(agentIdOrSessionId) {
|
|
210166
|
+
async function processQueue(agentIdOrSessionId) {
|
|
210167
210167
|
processingQueues.add(agentIdOrSessionId);
|
|
210168
210168
|
const queue = dumpRequestQueue.get(agentIdOrSessionId);
|
|
210169
210169
|
if (!queue || queue.length === 0) {
|
|
@@ -210172,7 +210172,7 @@ function processQueue(agentIdOrSessionId) {
|
|
|
210172
210172
|
return;
|
|
210173
210173
|
}
|
|
210174
210174
|
const callback = queue.shift();
|
|
210175
|
-
callback();
|
|
210175
|
+
await callback();
|
|
210176
210176
|
if (queue.length > 0) {
|
|
210177
210177
|
setImmediate(() => processQueue(agentIdOrSessionId));
|
|
210178
210178
|
} else {
|
|
@@ -210203,14 +210203,17 @@ function addApiRequestToCache(requestData) {
|
|
|
210203
210203
|
function getDumpPromptsPath(agentIdOrSessionId) {
|
|
210204
210204
|
return join48(getClaudeConfigHomeDir(), "dump-prompts", `${agentIdOrSessionId ?? getSessionId()}.jsonl`);
|
|
210205
210205
|
}
|
|
210206
|
-
function appendToFile(filePath, entries) {
|
|
210206
|
+
async function appendToFile(filePath, entries) {
|
|
210207
210207
|
if (entries.length === 0)
|
|
210208
210208
|
return;
|
|
210209
|
-
|
|
210209
|
+
try {
|
|
210210
|
+
await fs11.mkdir(dirname27(filePath), { recursive: true });
|
|
210211
|
+
await fs11.appendFile(filePath, entries.join(`
|
|
210210
210212
|
`) + `
|
|
210211
|
-
`)
|
|
210213
|
+
`);
|
|
210214
|
+
} catch (err2) {
|
|
210212
210215
|
logForDebugging(`dumpPrompts.appendToFile error: ${err2}`, { level: "error" });
|
|
210213
|
-
}
|
|
210216
|
+
}
|
|
210214
210217
|
}
|
|
210215
210218
|
function initFingerprint(req) {
|
|
210216
210219
|
const tools = req.tools;
|
|
@@ -210219,7 +210222,7 @@ function initFingerprint(req) {
|
|
|
210219
210222
|
const toolNames = tools?.map((t) => t.name ?? "").join(",") ?? "";
|
|
210220
210223
|
return `${req.model}|${toolNames}|${sysLen}`;
|
|
210221
210224
|
}
|
|
210222
|
-
function dumpRequest(body, ts, state, filePath) {
|
|
210225
|
+
async function dumpRequest(body, ts, state, filePath) {
|
|
210223
210226
|
try {
|
|
210224
210227
|
const req = jsonParse(body);
|
|
210225
210228
|
addApiRequestToCache(req);
|
|
@@ -210257,7 +210260,7 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210257
210260
|
}
|
|
210258
210261
|
}
|
|
210259
210262
|
state.messageCountSeen = messages.length;
|
|
210260
|
-
appendToFile(filePath, entries);
|
|
210263
|
+
await appendToFile(filePath, entries);
|
|
210261
210264
|
} catch (err2) {
|
|
210262
210265
|
logForDebugging(`dumpPrompts.dumpRequest error: ${err2}`, { level: "error" });
|
|
210263
210266
|
}
|
|
@@ -210275,8 +210278,8 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210275
210278
|
let timestamp;
|
|
210276
210279
|
if (init2?.method === "POST" && init2.body) {
|
|
210277
210280
|
timestamp = new Date().toISOString();
|
|
210278
|
-
enqueueDumpRequest(agentIdOrSessionId, () => {
|
|
210279
|
-
dumpRequest(init2.body, timestamp, state, filePath);
|
|
210281
|
+
enqueueDumpRequest(agentIdOrSessionId, async () => {
|
|
210282
|
+
await dumpRequest(init2.body, timestamp, state, filePath);
|
|
210280
210283
|
});
|
|
210281
210284
|
}
|
|
210282
210285
|
const response = await globalThis.fetch(input, init2);
|
|
@@ -301130,8 +301133,8 @@ function memoizeWithTTL(fn, ttlMs) {
|
|
|
301130
301133
|
return result;
|
|
301131
301134
|
} catch (error49) {
|
|
301132
301135
|
originalClear();
|
|
301133
|
-
lastCachedAt =
|
|
301134
|
-
|
|
301136
|
+
lastCachedAt = -1;
|
|
301137
|
+
return { success: false };
|
|
301135
301138
|
}
|
|
301136
301139
|
};
|
|
301137
301140
|
wrapped.cache = {
|
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.91",
|
|
8
|
+
BUILD_TIME: "2026-07-17T20:20:49.267Z",
|
|
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.91",
|
|
117488
117488
|
private: false,
|
|
117489
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117490
117490
|
license: "MIT",
|
|
@@ -210163,7 +210163,7 @@ function enqueueDumpRequest(agentIdOrSessionId, callback) {
|
|
|
210163
210163
|
processQueue(agentIdOrSessionId);
|
|
210164
210164
|
}
|
|
210165
210165
|
}
|
|
210166
|
-
function processQueue(agentIdOrSessionId) {
|
|
210166
|
+
async function processQueue(agentIdOrSessionId) {
|
|
210167
210167
|
processingQueues.add(agentIdOrSessionId);
|
|
210168
210168
|
const queue = dumpRequestQueue.get(agentIdOrSessionId);
|
|
210169
210169
|
if (!queue || queue.length === 0) {
|
|
@@ -210172,7 +210172,7 @@ function processQueue(agentIdOrSessionId) {
|
|
|
210172
210172
|
return;
|
|
210173
210173
|
}
|
|
210174
210174
|
const callback = queue.shift();
|
|
210175
|
-
callback();
|
|
210175
|
+
await callback();
|
|
210176
210176
|
if (queue.length > 0) {
|
|
210177
210177
|
setImmediate(() => processQueue(agentIdOrSessionId));
|
|
210178
210178
|
} else {
|
|
@@ -210203,14 +210203,17 @@ function addApiRequestToCache(requestData) {
|
|
|
210203
210203
|
function getDumpPromptsPath(agentIdOrSessionId) {
|
|
210204
210204
|
return join48(getClaudeConfigHomeDir(), "dump-prompts", `${agentIdOrSessionId ?? getSessionId()}.jsonl`);
|
|
210205
210205
|
}
|
|
210206
|
-
function appendToFile(filePath, entries) {
|
|
210206
|
+
async function appendToFile(filePath, entries) {
|
|
210207
210207
|
if (entries.length === 0)
|
|
210208
210208
|
return;
|
|
210209
|
-
|
|
210209
|
+
try {
|
|
210210
|
+
await fs11.mkdir(dirname27(filePath), { recursive: true });
|
|
210211
|
+
await fs11.appendFile(filePath, entries.join(`
|
|
210210
210212
|
`) + `
|
|
210211
|
-
`)
|
|
210213
|
+
`);
|
|
210214
|
+
} catch (err2) {
|
|
210212
210215
|
logForDebugging(`dumpPrompts.appendToFile error: ${err2}`, { level: "error" });
|
|
210213
|
-
}
|
|
210216
|
+
}
|
|
210214
210217
|
}
|
|
210215
210218
|
function initFingerprint(req) {
|
|
210216
210219
|
const tools = req.tools;
|
|
@@ -210219,7 +210222,7 @@ function initFingerprint(req) {
|
|
|
210219
210222
|
const toolNames = tools?.map((t) => t.name ?? "").join(",") ?? "";
|
|
210220
210223
|
return `${req.model}|${toolNames}|${sysLen}`;
|
|
210221
210224
|
}
|
|
210222
|
-
function dumpRequest(body, ts, state, filePath) {
|
|
210225
|
+
async function dumpRequest(body, ts, state, filePath) {
|
|
210223
210226
|
try {
|
|
210224
210227
|
const req = jsonParse(body);
|
|
210225
210228
|
addApiRequestToCache(req);
|
|
@@ -210257,7 +210260,7 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210257
210260
|
}
|
|
210258
210261
|
}
|
|
210259
210262
|
state.messageCountSeen = messages.length;
|
|
210260
|
-
appendToFile(filePath, entries);
|
|
210263
|
+
await appendToFile(filePath, entries);
|
|
210261
210264
|
} catch (err2) {
|
|
210262
210265
|
logForDebugging(`dumpPrompts.dumpRequest error: ${err2}`, { level: "error" });
|
|
210263
210266
|
}
|
|
@@ -210275,8 +210278,8 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210275
210278
|
let timestamp;
|
|
210276
210279
|
if (init2?.method === "POST" && init2.body) {
|
|
210277
210280
|
timestamp = new Date().toISOString();
|
|
210278
|
-
enqueueDumpRequest(agentIdOrSessionId, () => {
|
|
210279
|
-
dumpRequest(init2.body, timestamp, state, filePath);
|
|
210281
|
+
enqueueDumpRequest(agentIdOrSessionId, async () => {
|
|
210282
|
+
await dumpRequest(init2.body, timestamp, state, filePath);
|
|
210280
210283
|
});
|
|
210281
210284
|
}
|
|
210282
210285
|
const response = await globalThis.fetch(input, init2);
|
|
@@ -301130,8 +301133,8 @@ function memoizeWithTTL(fn, ttlMs) {
|
|
|
301130
301133
|
return result;
|
|
301131
301134
|
} catch (error49) {
|
|
301132
301135
|
originalClear();
|
|
301133
|
-
lastCachedAt =
|
|
301134
|
-
|
|
301136
|
+
lastCachedAt = -1;
|
|
301137
|
+
return { success: false };
|
|
301135
301138
|
}
|
|
301136
301139
|
};
|
|
301137
301140
|
wrapped.cache = {
|