@funnycode/myclaude 0.1.112 → 0.1.113
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 +17 -40
- package/dist/myclaude.mjs +17 -40
- 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.113",
|
|
8
|
+
BUILD_TIME: "2026-07-21T00:40:54.548Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -38380,7 +38380,6 @@ var init_log3 = __esm(() => {
|
|
|
38380
38380
|
function sequential(fn) {
|
|
38381
38381
|
const queue = [];
|
|
38382
38382
|
let processing = false;
|
|
38383
|
-
let reentrantCount = 0;
|
|
38384
38383
|
async function processQueue() {
|
|
38385
38384
|
if (processing)
|
|
38386
38385
|
return;
|
|
@@ -38390,13 +38389,10 @@ function sequential(fn) {
|
|
|
38390
38389
|
while (queue.length > 0) {
|
|
38391
38390
|
const { args, resolve: resolve5, reject, context } = queue.shift();
|
|
38392
38391
|
try {
|
|
38393
|
-
reentrantCount++;
|
|
38394
38392
|
const result = await fn.apply(context, args);
|
|
38395
38393
|
resolve5(result);
|
|
38396
38394
|
} catch (error49) {
|
|
38397
38395
|
reject(error49);
|
|
38398
|
-
} finally {
|
|
38399
|
-
reentrantCount--;
|
|
38400
38396
|
}
|
|
38401
38397
|
}
|
|
38402
38398
|
processing = false;
|
|
@@ -38405,9 +38401,6 @@ function sequential(fn) {
|
|
|
38405
38401
|
}
|
|
38406
38402
|
}
|
|
38407
38403
|
return function(...args) {
|
|
38408
|
-
if (reentrantCount > 0) {
|
|
38409
|
-
return fn.apply(this, args);
|
|
38410
|
-
}
|
|
38411
38404
|
return new Promise((resolve5, reject) => {
|
|
38412
38405
|
queue.push({ args, resolve: resolve5, reject, context: this });
|
|
38413
38406
|
processQueue();
|
|
@@ -117491,7 +117484,7 @@ var package_default;
|
|
|
117491
117484
|
var init_package = __esm(() => {
|
|
117492
117485
|
package_default = {
|
|
117493
117486
|
name: "@funnycode/myclaude",
|
|
117494
|
-
version: "0.1.
|
|
117487
|
+
version: "0.1.113",
|
|
117495
117488
|
private: false,
|
|
117496
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117497
117490
|
license: "MIT",
|
|
@@ -210335,8 +210328,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210335
210328
|
if (isStreaming && cloned.body) {
|
|
210336
210329
|
const reader = cloned.body.getReader();
|
|
210337
210330
|
const decoder = new TextDecoder;
|
|
210338
|
-
|
|
210339
|
-
let bufferLength = 0;
|
|
210331
|
+
let buffer = "";
|
|
210340
210332
|
const MAX_BUFFER_SIZE2 = 10 * 1024 * 1024;
|
|
210341
210333
|
const chunkEntries = [];
|
|
210342
210334
|
try {
|
|
@@ -210345,17 +210337,15 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210345
210337
|
if (done)
|
|
210346
210338
|
break;
|
|
210347
210339
|
const decoded = decoder.decode(value, { stream: true });
|
|
210348
|
-
|
|
210349
|
-
|
|
210350
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
210340
|
+
buffer += decoded;
|
|
210341
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210351
210342
|
logForDebugging("dumpPrompts: buffer exceeded max size, extracting complete events", { level: "warn" });
|
|
210352
|
-
const
|
|
210353
|
-
const lastDoubleNewline2 = fullBuffer.lastIndexOf(`
|
|
210343
|
+
const lastDoubleNewline2 = buffer.lastIndexOf(`
|
|
210354
210344
|
|
|
210355
210345
|
`);
|
|
210356
210346
|
if (lastDoubleNewline2 !== -1) {
|
|
210357
|
-
const completeEvents =
|
|
210358
|
-
const incomplete =
|
|
210347
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline2);
|
|
210348
|
+
const incomplete = buffer.slice(lastDoubleNewline2 + 2);
|
|
210359
210349
|
for (const event of completeEvents.split(`
|
|
210360
210350
|
|
|
210361
210351
|
`)) {
|
|
@@ -210368,36 +210358,24 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210368
210358
|
}
|
|
210369
210359
|
}
|
|
210370
210360
|
}
|
|
210371
|
-
|
|
210372
|
-
|
|
210373
|
-
bufferLength = incomplete.length;
|
|
210374
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
210361
|
+
buffer = incomplete;
|
|
210362
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210375
210363
|
logForDebugging("dumpPrompts: incomplete buffer still exceeds max size, truncating", { level: "warn" });
|
|
210376
|
-
|
|
210377
|
-
bufferChunks.length = 0;
|
|
210378
|
-
bufferChunks.push(truncated);
|
|
210379
|
-
bufferLength = truncated.length;
|
|
210364
|
+
buffer = incomplete.slice(-MAX_BUFFER_SIZE2);
|
|
210380
210365
|
}
|
|
210381
210366
|
} else {
|
|
210382
210367
|
logForDebugging("dumpPrompts: no complete events, truncating buffer", { level: "warn" });
|
|
210383
|
-
|
|
210384
|
-
const truncated = fullBuffer2.slice(-MAX_BUFFER_SIZE2);
|
|
210385
|
-
bufferChunks.length = 0;
|
|
210386
|
-
bufferChunks.push(truncated);
|
|
210387
|
-
bufferLength = truncated.length;
|
|
210368
|
+
buffer = buffer.slice(-MAX_BUFFER_SIZE2);
|
|
210388
210369
|
}
|
|
210389
210370
|
continue;
|
|
210390
210371
|
}
|
|
210391
|
-
const
|
|
210392
|
-
const lastDoubleNewline = buffer2.lastIndexOf(`
|
|
210372
|
+
const lastDoubleNewline = buffer.lastIndexOf(`
|
|
210393
210373
|
|
|
210394
210374
|
`);
|
|
210395
210375
|
if (lastDoubleNewline !== -1) {
|
|
210396
|
-
const completeEvents =
|
|
210397
|
-
const incomplete =
|
|
210398
|
-
|
|
210399
|
-
bufferChunks.push(incomplete);
|
|
210400
|
-
bufferLength = incomplete.length;
|
|
210376
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline);
|
|
210377
|
+
const incomplete = buffer.slice(lastDoubleNewline + 2);
|
|
210378
|
+
buffer = incomplete;
|
|
210401
210379
|
for (const event of completeEvents.split(`
|
|
210402
210380
|
|
|
210403
210381
|
`)) {
|
|
@@ -210415,7 +210393,6 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210415
210393
|
} finally {
|
|
210416
210394
|
reader.releaseLock();
|
|
210417
210395
|
}
|
|
210418
|
-
const buffer = bufferChunks.join("");
|
|
210419
210396
|
if (buffer.trim()) {
|
|
210420
210397
|
for (const event of buffer.split(`
|
|
210421
210398
|
|
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.113",
|
|
8
|
+
BUILD_TIME: "2026-07-21T00:40:54.548Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -38380,7 +38380,6 @@ var init_log3 = __esm(() => {
|
|
|
38380
38380
|
function sequential(fn) {
|
|
38381
38381
|
const queue = [];
|
|
38382
38382
|
let processing = false;
|
|
38383
|
-
let reentrantCount = 0;
|
|
38384
38383
|
async function processQueue() {
|
|
38385
38384
|
if (processing)
|
|
38386
38385
|
return;
|
|
@@ -38390,13 +38389,10 @@ function sequential(fn) {
|
|
|
38390
38389
|
while (queue.length > 0) {
|
|
38391
38390
|
const { args, resolve: resolve5, reject, context } = queue.shift();
|
|
38392
38391
|
try {
|
|
38393
|
-
reentrantCount++;
|
|
38394
38392
|
const result = await fn.apply(context, args);
|
|
38395
38393
|
resolve5(result);
|
|
38396
38394
|
} catch (error49) {
|
|
38397
38395
|
reject(error49);
|
|
38398
|
-
} finally {
|
|
38399
|
-
reentrantCount--;
|
|
38400
38396
|
}
|
|
38401
38397
|
}
|
|
38402
38398
|
processing = false;
|
|
@@ -38405,9 +38401,6 @@ function sequential(fn) {
|
|
|
38405
38401
|
}
|
|
38406
38402
|
}
|
|
38407
38403
|
return function(...args) {
|
|
38408
|
-
if (reentrantCount > 0) {
|
|
38409
|
-
return fn.apply(this, args);
|
|
38410
|
-
}
|
|
38411
38404
|
return new Promise((resolve5, reject) => {
|
|
38412
38405
|
queue.push({ args, resolve: resolve5, reject, context: this });
|
|
38413
38406
|
processQueue();
|
|
@@ -117491,7 +117484,7 @@ var package_default;
|
|
|
117491
117484
|
var init_package = __esm(() => {
|
|
117492
117485
|
package_default = {
|
|
117493
117486
|
name: "@funnycode/myclaude",
|
|
117494
|
-
version: "0.1.
|
|
117487
|
+
version: "0.1.113",
|
|
117495
117488
|
private: false,
|
|
117496
117489
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117497
117490
|
license: "MIT",
|
|
@@ -210335,8 +210328,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210335
210328
|
if (isStreaming && cloned.body) {
|
|
210336
210329
|
const reader = cloned.body.getReader();
|
|
210337
210330
|
const decoder = new TextDecoder;
|
|
210338
|
-
|
|
210339
|
-
let bufferLength = 0;
|
|
210331
|
+
let buffer = "";
|
|
210340
210332
|
const MAX_BUFFER_SIZE2 = 10 * 1024 * 1024;
|
|
210341
210333
|
const chunkEntries = [];
|
|
210342
210334
|
try {
|
|
@@ -210345,17 +210337,15 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210345
210337
|
if (done)
|
|
210346
210338
|
break;
|
|
210347
210339
|
const decoded = decoder.decode(value, { stream: true });
|
|
210348
|
-
|
|
210349
|
-
|
|
210350
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
210340
|
+
buffer += decoded;
|
|
210341
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210351
210342
|
logForDebugging("dumpPrompts: buffer exceeded max size, extracting complete events", { level: "warn" });
|
|
210352
|
-
const
|
|
210353
|
-
const lastDoubleNewline2 = fullBuffer.lastIndexOf(`
|
|
210343
|
+
const lastDoubleNewline2 = buffer.lastIndexOf(`
|
|
210354
210344
|
|
|
210355
210345
|
`);
|
|
210356
210346
|
if (lastDoubleNewline2 !== -1) {
|
|
210357
|
-
const completeEvents =
|
|
210358
|
-
const incomplete =
|
|
210347
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline2);
|
|
210348
|
+
const incomplete = buffer.slice(lastDoubleNewline2 + 2);
|
|
210359
210349
|
for (const event of completeEvents.split(`
|
|
210360
210350
|
|
|
210361
210351
|
`)) {
|
|
@@ -210368,36 +210358,24 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210368
210358
|
}
|
|
210369
210359
|
}
|
|
210370
210360
|
}
|
|
210371
|
-
|
|
210372
|
-
|
|
210373
|
-
bufferLength = incomplete.length;
|
|
210374
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
210361
|
+
buffer = incomplete;
|
|
210362
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210375
210363
|
logForDebugging("dumpPrompts: incomplete buffer still exceeds max size, truncating", { level: "warn" });
|
|
210376
|
-
|
|
210377
|
-
bufferChunks.length = 0;
|
|
210378
|
-
bufferChunks.push(truncated);
|
|
210379
|
-
bufferLength = truncated.length;
|
|
210364
|
+
buffer = incomplete.slice(-MAX_BUFFER_SIZE2);
|
|
210380
210365
|
}
|
|
210381
210366
|
} else {
|
|
210382
210367
|
logForDebugging("dumpPrompts: no complete events, truncating buffer", { level: "warn" });
|
|
210383
|
-
|
|
210384
|
-
const truncated = fullBuffer2.slice(-MAX_BUFFER_SIZE2);
|
|
210385
|
-
bufferChunks.length = 0;
|
|
210386
|
-
bufferChunks.push(truncated);
|
|
210387
|
-
bufferLength = truncated.length;
|
|
210368
|
+
buffer = buffer.slice(-MAX_BUFFER_SIZE2);
|
|
210388
210369
|
}
|
|
210389
210370
|
continue;
|
|
210390
210371
|
}
|
|
210391
|
-
const
|
|
210392
|
-
const lastDoubleNewline = buffer2.lastIndexOf(`
|
|
210372
|
+
const lastDoubleNewline = buffer.lastIndexOf(`
|
|
210393
210373
|
|
|
210394
210374
|
`);
|
|
210395
210375
|
if (lastDoubleNewline !== -1) {
|
|
210396
|
-
const completeEvents =
|
|
210397
|
-
const incomplete =
|
|
210398
|
-
|
|
210399
|
-
bufferChunks.push(incomplete);
|
|
210400
|
-
bufferLength = incomplete.length;
|
|
210376
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline);
|
|
210377
|
+
const incomplete = buffer.slice(lastDoubleNewline + 2);
|
|
210378
|
+
buffer = incomplete;
|
|
210401
210379
|
for (const event of completeEvents.split(`
|
|
210402
210380
|
|
|
210403
210381
|
`)) {
|
|
@@ -210415,7 +210393,6 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210415
210393
|
} finally {
|
|
210416
210394
|
reader.releaseLock();
|
|
210417
210395
|
}
|
|
210418
|
-
const buffer = bufferChunks.join("");
|
|
210419
210396
|
if (buffer.trim()) {
|
|
210420
210397
|
for (const event of buffer.split(`
|
|
210421
210398
|
|