@funnycode/myclaude 0.1.93 → 0.1.94

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 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.93",
8
- BUILD_TIME: "2026-07-18T04:08:04.637Z",
7
+ VERSION: "0.1.94",
8
+ BUILD_TIME: "2026-07-18T06:27:57.445Z",
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.93",
117487
+ version: "0.1.94",
117488
117488
  private: false,
117489
117489
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
117490
117490
  license: "MIT",
@@ -210439,6 +210439,8 @@ function initFingerprint(req) {
210439
210439
  return `${req.model}|${toolNames}|${sysLen}`;
210440
210440
  }
210441
210441
  async function dumpRequest(body, ts, state, filePath) {
210442
+ if (false)
210443
+ ;
210442
210444
  try {
210443
210445
  const req = jsonParse(body);
210444
210446
  addApiRequestToCache(req);
@@ -210500,7 +210502,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
210500
210502
  });
210501
210503
  }
210502
210504
  const response = await globalThis.fetch(input, init2);
210503
- if (timestamp && response.ok && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
210505
+ if (timestamp && response.ok && true && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
210504
210506
  const cloned = response.clone();
210505
210507
  (async () => {
210506
210508
  try {
@@ -342326,21 +342328,21 @@ var init_KeybindingProviderSetup = __esm(() => {
342326
342328
  });
342327
342329
 
342328
342330
  // src/services/api/sessionIngress.ts
342329
- function getOrCreateSequentialAppend(sessionId) {
342330
- let sequentialAppend = sequentialAppendBySession.get(sessionId);
342331
- if (!sequentialAppend) {
342332
- sequentialAppend = sequential(async (entry, url3, headers) => await appendSessionLogImpl(sessionId, entry, url3, headers));
342333
- sequentialAppendBySession.set(sessionId, sequentialAppend);
342334
- }
342335
- return sequentialAppend;
342336
- }
342337
- function getOrCreateSequentialFetch(sessionId) {
342338
- let sequentialFetch = sequentialFetchBySession.get(sessionId);
342339
- if (!sequentialFetch) {
342340
- sequentialFetch = sequential(async (sid, url3, headers) => await fetchSessionLogsFromUrl(sid, url3, headers));
342341
- sequentialFetchBySession.set(sessionId, sequentialFetch);
342331
+ function getOrCreateSequential(sessionId) {
342332
+ let wrapper = sequentialBySession.get(sessionId);
342333
+ if (!wrapper) {
342334
+ wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
342335
+ if (isFetch) {
342336
+ const sid = entryOrSid;
342337
+ return await fetchSessionLogsFromUrl(sid, url3, headers);
342338
+ } else {
342339
+ const entry = entryOrSid;
342340
+ return await appendSessionLogImpl(sessionId, entry, url3, headers);
342341
+ }
342342
+ });
342343
+ sequentialBySession.set(sessionId, wrapper);
342342
342344
  }
342343
- return sequentialFetch;
342345
+ return wrapper;
342344
342346
  }
342345
342347
  async function appendSessionLogImpl(sessionId, entry, url3, headers) {
342346
342348
  for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
@@ -342371,10 +342373,10 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
342371
342373
  lastUuidMap.set(sessionId, serverLastUuid);
342372
342374
  logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
342373
342375
  } else {
342374
- const sequentialFetch = getOrCreateSequentialFetch(sessionId);
342376
+ const sequential2 = getOrCreateSequential(sessionId);
342375
342377
  let logs2 = null;
342376
342378
  try {
342377
- logs2 = await sequentialFetch(sessionId, url3, headers);
342379
+ logs2 = await sequential2(sessionId, url3, headers, true);
342378
342380
  } catch (fetchError) {
342379
342381
  logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
342380
342382
  logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
@@ -342432,8 +342434,8 @@ async function appendSessionLog(sessionId, entry, url3) {
342432
342434
  Authorization: `Bearer ${sessionToken}`,
342433
342435
  "Content-Type": "application/json"
342434
342436
  };
342435
- const sequentialAppend = getOrCreateSequentialAppend(sessionId);
342436
- return sequentialAppend(entry, url3, headers);
342437
+ const sequential2 = getOrCreateSequential(sessionId);
342438
+ return sequential2(entry, url3, headers, false);
342437
342439
  }
342438
342440
  async function getSessionLogs(sessionId, url3) {
342439
342441
  const sessionToken = getSessionIngressAuthToken();
@@ -342594,10 +342596,9 @@ function findLastUuid(logs2) {
342594
342596
  }
342595
342597
  function clearAllSessions() {
342596
342598
  lastUuidMap.clear();
342597
- sequentialAppendBySession.clear();
342598
- sequentialFetchBySession.clear();
342599
+ sequentialBySession.clear();
342599
342600
  }
342600
- var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession, sequentialFetchBySession;
342601
+ var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
342601
342602
  var init_sessionIngress = __esm(() => {
342602
342603
  init_axios2();
342603
342604
  init_oauth();
@@ -342609,8 +342610,7 @@ var init_sessionIngress = __esm(() => {
342609
342610
  init_slowOperations();
342610
342611
  init_api2();
342611
342612
  lastUuidMap = new Map;
342612
- sequentialAppendBySession = new Map;
342613
- sequentialFetchBySession = new Map;
342613
+ sequentialBySession = new Map;
342614
342614
  });
342615
342615
 
342616
342616
  // src/utils/fileHistory.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.93",
8
- BUILD_TIME: "2026-07-18T04:08:04.637Z",
7
+ VERSION: "0.1.94",
8
+ BUILD_TIME: "2026-07-18T06:27:57.445Z",
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.93",
117487
+ version: "0.1.94",
117488
117488
  private: false,
117489
117489
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
117490
117490
  license: "MIT",
@@ -210439,6 +210439,8 @@ function initFingerprint(req) {
210439
210439
  return `${req.model}|${toolNames}|${sysLen}`;
210440
210440
  }
210441
210441
  async function dumpRequest(body, ts, state, filePath) {
210442
+ if (false)
210443
+ ;
210442
210444
  try {
210443
210445
  const req = jsonParse(body);
210444
210446
  addApiRequestToCache(req);
@@ -210500,7 +210502,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
210500
210502
  });
210501
210503
  }
210502
210504
  const response = await globalThis.fetch(input, init2);
210503
- if (timestamp && response.ok && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
210505
+ if (timestamp && response.ok && true && process.env.USER_TYPE === "ant" && process.env.DUMP_PROMPTS === "1") {
210504
210506
  const cloned = response.clone();
210505
210507
  (async () => {
210506
210508
  try {
@@ -342326,21 +342328,21 @@ var init_KeybindingProviderSetup = __esm(() => {
342326
342328
  });
342327
342329
 
342328
342330
  // src/services/api/sessionIngress.ts
342329
- function getOrCreateSequentialAppend(sessionId) {
342330
- let sequentialAppend = sequentialAppendBySession.get(sessionId);
342331
- if (!sequentialAppend) {
342332
- sequentialAppend = sequential(async (entry, url3, headers) => await appendSessionLogImpl(sessionId, entry, url3, headers));
342333
- sequentialAppendBySession.set(sessionId, sequentialAppend);
342334
- }
342335
- return sequentialAppend;
342336
- }
342337
- function getOrCreateSequentialFetch(sessionId) {
342338
- let sequentialFetch = sequentialFetchBySession.get(sessionId);
342339
- if (!sequentialFetch) {
342340
- sequentialFetch = sequential(async (sid, url3, headers) => await fetchSessionLogsFromUrl(sid, url3, headers));
342341
- sequentialFetchBySession.set(sessionId, sequentialFetch);
342331
+ function getOrCreateSequential(sessionId) {
342332
+ let wrapper = sequentialBySession.get(sessionId);
342333
+ if (!wrapper) {
342334
+ wrapper = sequential(async (entryOrSid, url3, headers, isFetch = false) => {
342335
+ if (isFetch) {
342336
+ const sid = entryOrSid;
342337
+ return await fetchSessionLogsFromUrl(sid, url3, headers);
342338
+ } else {
342339
+ const entry = entryOrSid;
342340
+ return await appendSessionLogImpl(sessionId, entry, url3, headers);
342341
+ }
342342
+ });
342343
+ sequentialBySession.set(sessionId, wrapper);
342342
342344
  }
342343
- return sequentialFetch;
342345
+ return wrapper;
342344
342346
  }
342345
342347
  async function appendSessionLogImpl(sessionId, entry, url3, headers) {
342346
342348
  for (let attempt = 1;attempt <= MAX_RETRIES; attempt++) {
@@ -342371,10 +342373,10 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
342371
342373
  lastUuidMap.set(sessionId, serverLastUuid);
342372
342374
  logForDebugging(`Session 409: adopting server lastUuid=${serverLastUuid} from header, retrying entry ${entry.uuid}`);
342373
342375
  } else {
342374
- const sequentialFetch = getOrCreateSequentialFetch(sessionId);
342376
+ const sequential2 = getOrCreateSequential(sessionId);
342375
342377
  let logs2 = null;
342376
342378
  try {
342377
- logs2 = await sequentialFetch(sessionId, url3, headers);
342379
+ logs2 = await sequential2(sessionId, url3, headers, true);
342378
342380
  } catch (fetchError) {
342379
342381
  logError2(new Error(`Session 409: fetch failed for session ${sessionId}, entry ${entry.uuid}: ${fetchError instanceof Error ? fetchError.message : String(fetchError)}`));
342380
342382
  logForDiagnosticsNoPII("error", "session_persist_409_fetch_fail");
@@ -342432,8 +342434,8 @@ async function appendSessionLog(sessionId, entry, url3) {
342432
342434
  Authorization: `Bearer ${sessionToken}`,
342433
342435
  "Content-Type": "application/json"
342434
342436
  };
342435
- const sequentialAppend = getOrCreateSequentialAppend(sessionId);
342436
- return sequentialAppend(entry, url3, headers);
342437
+ const sequential2 = getOrCreateSequential(sessionId);
342438
+ return sequential2(entry, url3, headers, false);
342437
342439
  }
342438
342440
  async function getSessionLogs(sessionId, url3) {
342439
342441
  const sessionToken = getSessionIngressAuthToken();
@@ -342594,10 +342596,9 @@ function findLastUuid(logs2) {
342594
342596
  }
342595
342597
  function clearAllSessions() {
342596
342598
  lastUuidMap.clear();
342597
- sequentialAppendBySession.clear();
342598
- sequentialFetchBySession.clear();
342599
+ sequentialBySession.clear();
342599
342600
  }
342600
- var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialAppendBySession, sequentialFetchBySession;
342601
+ var lastUuidMap, MAX_RETRIES = 10, BASE_DELAY_MS2 = 500, sequentialBySession;
342601
342602
  var init_sessionIngress = __esm(() => {
342602
342603
  init_axios2();
342603
342604
  init_oauth();
@@ -342609,8 +342610,7 @@ var init_sessionIngress = __esm(() => {
342609
342610
  init_slowOperations();
342610
342611
  init_api2();
342611
342612
  lastUuidMap = new Map;
342612
- sequentialAppendBySession = new Map;
342613
- sequentialFetchBySession = new Map;
342613
+ sequentialBySession = new Map;
342614
342614
  });
342615
342615
 
342616
342616
  // src/utils/fileHistory.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",