@funnycode/myclaude 0.1.81 → 0.1.82
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 +22 -13
- package/dist/myclaude.mjs +22 -13
- 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.82",
|
|
8
|
+
BUILD_TIME: "2026-07-16T14:27:50.796Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117487,7 +117487,7 @@ var package_default;
|
|
|
117487
117487
|
var init_package = __esm(() => {
|
|
117488
117488
|
package_default = {
|
|
117489
117489
|
name: "@funnycode/myclaude",
|
|
117490
|
-
version: "0.1.
|
|
117490
|
+
version: "0.1.82",
|
|
117491
117491
|
private: false,
|
|
117492
117492
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117493
117493
|
license: "MIT",
|
|
@@ -210160,14 +210160,16 @@ function enqueueDumpRequest(agentIdOrSessionId, callback) {
|
|
|
210160
210160
|
dumpRequestQueue.set(agentIdOrSessionId, []);
|
|
210161
210161
|
}
|
|
210162
210162
|
dumpRequestQueue.get(agentIdOrSessionId).push(callback);
|
|
210163
|
-
if (
|
|
210163
|
+
if (!processingQueues.has(agentIdOrSessionId)) {
|
|
210164
210164
|
processQueue(agentIdOrSessionId);
|
|
210165
210165
|
}
|
|
210166
210166
|
}
|
|
210167
210167
|
function processQueue(agentIdOrSessionId) {
|
|
210168
|
+
processingQueues.add(agentIdOrSessionId);
|
|
210168
210169
|
const queue = dumpRequestQueue.get(agentIdOrSessionId);
|
|
210169
210170
|
if (!queue || queue.length === 0) {
|
|
210170
210171
|
dumpRequestQueue.delete(agentIdOrSessionId);
|
|
210172
|
+
processingQueues.delete(agentIdOrSessionId);
|
|
210171
210173
|
return;
|
|
210172
210174
|
}
|
|
210173
210175
|
const callback = queue.shift();
|
|
@@ -210176,6 +210178,7 @@ function processQueue(agentIdOrSessionId) {
|
|
|
210176
210178
|
setImmediate(() => processQueue(agentIdOrSessionId));
|
|
210177
210179
|
} else {
|
|
210178
210180
|
dumpRequestQueue.delete(agentIdOrSessionId);
|
|
210181
|
+
processingQueues.delete(agentIdOrSessionId);
|
|
210179
210182
|
}
|
|
210180
210183
|
}
|
|
210181
210184
|
function clearDumpState(agentIdOrSessionId) {
|
|
@@ -210227,10 +210230,20 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210227
210230
|
const entries = [];
|
|
210228
210231
|
const messages = req.messages ?? [];
|
|
210229
210232
|
const fingerprint = initFingerprint(req);
|
|
210230
|
-
|
|
210233
|
+
let initDataStr;
|
|
210234
|
+
let initDataHash;
|
|
210235
|
+
const shouldWriteInitData = !state.initialized || fingerprint !== state.lastInitFingerprint;
|
|
210236
|
+
if (shouldWriteInitData) {
|
|
210231
210237
|
const { messages: _2, ...initData } = req;
|
|
210232
|
-
|
|
210233
|
-
|
|
210238
|
+
initDataStr = jsonStringify(initData);
|
|
210239
|
+
initDataHash = hashString3(initDataStr);
|
|
210240
|
+
}
|
|
210241
|
+
for (const msg of messages.slice(state.messageCountSeen)) {
|
|
210242
|
+
if (msg.role === "user") {
|
|
210243
|
+
entries.push(jsonStringify({ type: "message", timestamp: ts, data: msg }));
|
|
210244
|
+
}
|
|
210245
|
+
}
|
|
210246
|
+
if (shouldWriteInitData) {
|
|
210234
210247
|
state.lastInitFingerprint = fingerprint;
|
|
210235
210248
|
if (!state.initialized) {
|
|
210236
210249
|
state.initialized = true;
|
|
@@ -210241,11 +210254,6 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210241
210254
|
entries.push(`{"type":"system_update","timestamp":"${ts}","data":${initDataStr}}`);
|
|
210242
210255
|
}
|
|
210243
210256
|
}
|
|
210244
|
-
for (const msg of messages.slice(state.messageCountSeen)) {
|
|
210245
|
-
if (msg.role === "user") {
|
|
210246
|
-
entries.push(jsonStringify({ type: "message", timestamp: ts, data: msg }));
|
|
210247
|
-
}
|
|
210248
|
-
}
|
|
210249
210257
|
state.messageCountSeen = messages.length;
|
|
210250
210258
|
appendToFile(filePath, entries);
|
|
210251
210259
|
} catch (err2) {
|
|
@@ -210319,7 +210327,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210319
210327
|
return response;
|
|
210320
210328
|
};
|
|
210321
210329
|
}
|
|
210322
|
-
var MAX_CACHED_REQUESTS = 5, cachedApiRequests, dumpState, dumpRequestQueue;
|
|
210330
|
+
var MAX_CACHED_REQUESTS = 5, cachedApiRequests, dumpState, dumpRequestQueue, processingQueues;
|
|
210323
210331
|
var init_dumpPrompts = __esm(() => {
|
|
210324
210332
|
init_state();
|
|
210325
210333
|
init_envUtils();
|
|
@@ -210328,6 +210336,7 @@ var init_dumpPrompts = __esm(() => {
|
|
|
210328
210336
|
cachedApiRequests = [];
|
|
210329
210337
|
dumpState = new Map;
|
|
210330
210338
|
dumpRequestQueue = new Map;
|
|
210339
|
+
processingQueues = new Set;
|
|
210331
210340
|
});
|
|
210332
210341
|
|
|
210333
210342
|
// src/utils/abortController.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.82",
|
|
8
|
+
BUILD_TIME: "2026-07-16T14:27:50.796Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117487,7 +117487,7 @@ var package_default;
|
|
|
117487
117487
|
var init_package = __esm(() => {
|
|
117488
117488
|
package_default = {
|
|
117489
117489
|
name: "@funnycode/myclaude",
|
|
117490
|
-
version: "0.1.
|
|
117490
|
+
version: "0.1.82",
|
|
117491
117491
|
private: false,
|
|
117492
117492
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117493
117493
|
license: "MIT",
|
|
@@ -210160,14 +210160,16 @@ function enqueueDumpRequest(agentIdOrSessionId, callback) {
|
|
|
210160
210160
|
dumpRequestQueue.set(agentIdOrSessionId, []);
|
|
210161
210161
|
}
|
|
210162
210162
|
dumpRequestQueue.get(agentIdOrSessionId).push(callback);
|
|
210163
|
-
if (
|
|
210163
|
+
if (!processingQueues.has(agentIdOrSessionId)) {
|
|
210164
210164
|
processQueue(agentIdOrSessionId);
|
|
210165
210165
|
}
|
|
210166
210166
|
}
|
|
210167
210167
|
function processQueue(agentIdOrSessionId) {
|
|
210168
|
+
processingQueues.add(agentIdOrSessionId);
|
|
210168
210169
|
const queue = dumpRequestQueue.get(agentIdOrSessionId);
|
|
210169
210170
|
if (!queue || queue.length === 0) {
|
|
210170
210171
|
dumpRequestQueue.delete(agentIdOrSessionId);
|
|
210172
|
+
processingQueues.delete(agentIdOrSessionId);
|
|
210171
210173
|
return;
|
|
210172
210174
|
}
|
|
210173
210175
|
const callback = queue.shift();
|
|
@@ -210176,6 +210178,7 @@ function processQueue(agentIdOrSessionId) {
|
|
|
210176
210178
|
setImmediate(() => processQueue(agentIdOrSessionId));
|
|
210177
210179
|
} else {
|
|
210178
210180
|
dumpRequestQueue.delete(agentIdOrSessionId);
|
|
210181
|
+
processingQueues.delete(agentIdOrSessionId);
|
|
210179
210182
|
}
|
|
210180
210183
|
}
|
|
210181
210184
|
function clearDumpState(agentIdOrSessionId) {
|
|
@@ -210227,10 +210230,20 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210227
210230
|
const entries = [];
|
|
210228
210231
|
const messages = req.messages ?? [];
|
|
210229
210232
|
const fingerprint = initFingerprint(req);
|
|
210230
|
-
|
|
210233
|
+
let initDataStr;
|
|
210234
|
+
let initDataHash;
|
|
210235
|
+
const shouldWriteInitData = !state.initialized || fingerprint !== state.lastInitFingerprint;
|
|
210236
|
+
if (shouldWriteInitData) {
|
|
210231
210237
|
const { messages: _2, ...initData } = req;
|
|
210232
|
-
|
|
210233
|
-
|
|
210238
|
+
initDataStr = jsonStringify(initData);
|
|
210239
|
+
initDataHash = hashString3(initDataStr);
|
|
210240
|
+
}
|
|
210241
|
+
for (const msg of messages.slice(state.messageCountSeen)) {
|
|
210242
|
+
if (msg.role === "user") {
|
|
210243
|
+
entries.push(jsonStringify({ type: "message", timestamp: ts, data: msg }));
|
|
210244
|
+
}
|
|
210245
|
+
}
|
|
210246
|
+
if (shouldWriteInitData) {
|
|
210234
210247
|
state.lastInitFingerprint = fingerprint;
|
|
210235
210248
|
if (!state.initialized) {
|
|
210236
210249
|
state.initialized = true;
|
|
@@ -210241,11 +210254,6 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
210241
210254
|
entries.push(`{"type":"system_update","timestamp":"${ts}","data":${initDataStr}}`);
|
|
210242
210255
|
}
|
|
210243
210256
|
}
|
|
210244
|
-
for (const msg of messages.slice(state.messageCountSeen)) {
|
|
210245
|
-
if (msg.role === "user") {
|
|
210246
|
-
entries.push(jsonStringify({ type: "message", timestamp: ts, data: msg }));
|
|
210247
|
-
}
|
|
210248
|
-
}
|
|
210249
210257
|
state.messageCountSeen = messages.length;
|
|
210250
210258
|
appendToFile(filePath, entries);
|
|
210251
210259
|
} catch (err2) {
|
|
@@ -210319,7 +210327,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210319
210327
|
return response;
|
|
210320
210328
|
};
|
|
210321
210329
|
}
|
|
210322
|
-
var MAX_CACHED_REQUESTS = 5, cachedApiRequests, dumpState, dumpRequestQueue;
|
|
210330
|
+
var MAX_CACHED_REQUESTS = 5, cachedApiRequests, dumpState, dumpRequestQueue, processingQueues;
|
|
210323
210331
|
var init_dumpPrompts = __esm(() => {
|
|
210324
210332
|
init_state();
|
|
210325
210333
|
init_envUtils();
|
|
@@ -210328,6 +210336,7 @@ var init_dumpPrompts = __esm(() => {
|
|
|
210328
210336
|
cachedApiRequests = [];
|
|
210329
210337
|
dumpState = new Map;
|
|
210330
210338
|
dumpRequestQueue = new Map;
|
|
210339
|
+
processingQueues = new Set;
|
|
210331
210340
|
});
|
|
210332
210341
|
|
|
210333
210342
|
// src/utils/abortController.ts
|