@funnycode/myclaude 0.1.180 → 0.1.181

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.180",
8
- BUILD_TIME: "2026-08-04T07:11:41.203Z",
7
+ VERSION: "0.1.181",
8
+ BUILD_TIME: "2026-08-04T12:20:17.847Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -119986,7 +119986,7 @@ var package_default;
119986
119986
  var init_package = __esm(() => {
119987
119987
  package_default = {
119988
119988
  name: "@funnycode/myclaude",
119989
- version: "0.1.180",
119989
+ version: "0.1.181",
119990
119990
  private: false,
119991
119991
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119992
119992
  license: "MIT",
@@ -410223,7 +410223,7 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410223
410223
  }
410224
410224
  let entries;
410225
410225
  try {
410226
- entries = fs13.readdirSync(dirPath).map((dirent) => dirent.name);
410226
+ entries = fs13.readdirSync(dirPath, { withFileTypes: true }).map((dirent) => dirent.name);
410227
410227
  } catch (err2) {
410228
410228
  console.warn(`[getDirectoryFingerprint] Failed to read directory '${dirPath}': ${err2}`);
410229
410229
  recursionStack.pop();
@@ -410235,17 +410235,10 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410235
410235
  for (const entry of sortedEntries) {
410236
410236
  const fullPath = join105(dirPath, entry);
410237
410237
  try {
410238
- const lstat7 = fs13.lstatSync(fullPath);
410239
- if (lstat7.isDirectory()) {
410240
- const targetBasename = basename37(fullPath);
410241
- if (targetBasename === "node_modules" || targetBasename === ".git" || targetBasename === "dist" || targetBasename === "build" || targetBasename === ".next" || targetBasename === "out" || targetBasename === "coverage" || targetBasename === "target" || targetBasename === "vendor" || targetBasename === "__pycache__" || targetBasename === ".cache" || targetBasename === ".mypy_cache" || targetBasename === ".svn" || targetBasename === ".hg" || targetBasename === "venv" || targetBasename === ".venv" || targetBasename === "env") {
410242
- fingerprintParts.push(entry + "/");
410243
- continue;
410244
- }
410245
- fingerprintParts.push(entry + "/");
410246
- fingerprintParts.push(getDirectoryFingerprint(fullPath, recursionStack, rootRealPath, maxDepth));
410247
- } else if (lstat7.isSymbolicLink()) {
410238
+ let isSymlink = false;
410239
+ try {
410248
410240
  const linkTarget = fs13.readlinkSync(fullPath);
410241
+ isSymlink = true;
410249
410242
  const resolvedTarget = resolve44(dirPath, linkTarget);
410250
410243
  let targetRealPath;
410251
410244
  try {
@@ -410272,8 +410265,21 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410272
410265
  } else {
410273
410266
  fingerprintParts.push(entry + "/");
410274
410267
  }
410275
- } else {
410276
- fingerprintParts.push(entry);
410268
+ } catch {
410269
+ if (!isSymlink) {
410270
+ const lstat7 = fs13.lstatSync(fullPath);
410271
+ if (lstat7.isDirectory()) {
410272
+ const targetBasename = basename37(fullPath);
410273
+ if (targetBasename === "node_modules" || targetBasename === ".git" || targetBasename === "dist" || targetBasename === "build" || targetBasename === ".next" || targetBasename === "out" || targetBasename === "coverage" || targetBasename === "target" || targetBasename === "vendor" || targetBasename === "__pycache__" || targetBasename === ".cache" || targetBasename === ".mypy_cache" || targetBasename === ".svn" || targetBasename === ".hg" || targetBasename === "venv" || targetBasename === ".venv" || targetBasename === "env") {
410274
+ fingerprintParts.push(entry + "/");
410275
+ continue;
410276
+ }
410277
+ fingerprintParts.push(entry + "/");
410278
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, recursionStack, rootRealPath, maxDepth));
410279
+ } else {
410280
+ fingerprintParts.push(entry);
410281
+ }
410282
+ }
410277
410283
  }
410278
410284
  } catch (err2) {
410279
410285
  console.warn(`[getDirectoryFingerprint] Failed to access entry '${fullPath}': ${err2}`);
@@ -410343,10 +410349,12 @@ function getSteps() {
410343
410349
  } catch {
410344
410350
  cachedRootMtime = -1;
410345
410351
  }
410346
- try {
410347
- cachedDirFingerprint = getDirectoryFingerprint(cwd2);
410348
- } catch {
410349
- cachedDirFingerprint = "";
410352
+ if (cachedSteps !== null) {
410353
+ try {
410354
+ cachedDirFingerprint = getDirectoryFingerprint(cwd2);
410355
+ } catch {
410356
+ cachedDirFingerprint = "";
410357
+ }
410350
410358
  }
410351
410359
  cachedAt = Date.now();
410352
410360
  cachedSteps = [
@@ -410394,7 +410402,7 @@ function incrementProjectOnboardingSeenCount() {
410394
410402
  projectOnboardingSeenCount: current.projectOnboardingSeenCount + 1
410395
410403
  }));
410396
410404
  }
410397
- var cachedSteps = null, cachedClaudeMdMtime = -1, cachedDirFingerprint = "", cachedRootMtime = -1, cachedAt = null, CACHE_MAX_AGE_MS = 300000;
410405
+ var cachedSteps = null, cachedClaudeMdMtime = -1, cachedDirFingerprint = "", cachedRootMtime = -1, cachedAt = null, CACHE_MAX_AGE_MS = 60000;
410398
410406
  var init_projectOnboardingState = __esm(() => {
410399
410407
  init_config();
410400
410408
  init_cwd2();
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.180",
8
- BUILD_TIME: "2026-08-04T07:11:41.203Z",
7
+ VERSION: "0.1.181",
8
+ BUILD_TIME: "2026-08-04T12:20:17.847Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -119986,7 +119986,7 @@ var package_default;
119986
119986
  var init_package = __esm(() => {
119987
119987
  package_default = {
119988
119988
  name: "@funnycode/myclaude",
119989
- version: "0.1.180",
119989
+ version: "0.1.181",
119990
119990
  private: false,
119991
119991
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119992
119992
  license: "MIT",
@@ -410223,7 +410223,7 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410223
410223
  }
410224
410224
  let entries;
410225
410225
  try {
410226
- entries = fs13.readdirSync(dirPath).map((dirent) => dirent.name);
410226
+ entries = fs13.readdirSync(dirPath, { withFileTypes: true }).map((dirent) => dirent.name);
410227
410227
  } catch (err2) {
410228
410228
  console.warn(`[getDirectoryFingerprint] Failed to read directory '${dirPath}': ${err2}`);
410229
410229
  recursionStack.pop();
@@ -410235,17 +410235,10 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410235
410235
  for (const entry of sortedEntries) {
410236
410236
  const fullPath = join105(dirPath, entry);
410237
410237
  try {
410238
- const lstat7 = fs13.lstatSync(fullPath);
410239
- if (lstat7.isDirectory()) {
410240
- const targetBasename = basename37(fullPath);
410241
- if (targetBasename === "node_modules" || targetBasename === ".git" || targetBasename === "dist" || targetBasename === "build" || targetBasename === ".next" || targetBasename === "out" || targetBasename === "coverage" || targetBasename === "target" || targetBasename === "vendor" || targetBasename === "__pycache__" || targetBasename === ".cache" || targetBasename === ".mypy_cache" || targetBasename === ".svn" || targetBasename === ".hg" || targetBasename === "venv" || targetBasename === ".venv" || targetBasename === "env") {
410242
- fingerprintParts.push(entry + "/");
410243
- continue;
410244
- }
410245
- fingerprintParts.push(entry + "/");
410246
- fingerprintParts.push(getDirectoryFingerprint(fullPath, recursionStack, rootRealPath, maxDepth));
410247
- } else if (lstat7.isSymbolicLink()) {
410238
+ let isSymlink = false;
410239
+ try {
410248
410240
  const linkTarget = fs13.readlinkSync(fullPath);
410241
+ isSymlink = true;
410249
410242
  const resolvedTarget = resolve44(dirPath, linkTarget);
410250
410243
  let targetRealPath;
410251
410244
  try {
@@ -410272,8 +410265,21 @@ function getDirectoryFingerprint(dirPath, recursionStack, rootRealPath, maxDepth
410272
410265
  } else {
410273
410266
  fingerprintParts.push(entry + "/");
410274
410267
  }
410275
- } else {
410276
- fingerprintParts.push(entry);
410268
+ } catch {
410269
+ if (!isSymlink) {
410270
+ const lstat7 = fs13.lstatSync(fullPath);
410271
+ if (lstat7.isDirectory()) {
410272
+ const targetBasename = basename37(fullPath);
410273
+ if (targetBasename === "node_modules" || targetBasename === ".git" || targetBasename === "dist" || targetBasename === "build" || targetBasename === ".next" || targetBasename === "out" || targetBasename === "coverage" || targetBasename === "target" || targetBasename === "vendor" || targetBasename === "__pycache__" || targetBasename === ".cache" || targetBasename === ".mypy_cache" || targetBasename === ".svn" || targetBasename === ".hg" || targetBasename === "venv" || targetBasename === ".venv" || targetBasename === "env") {
410274
+ fingerprintParts.push(entry + "/");
410275
+ continue;
410276
+ }
410277
+ fingerprintParts.push(entry + "/");
410278
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, recursionStack, rootRealPath, maxDepth));
410279
+ } else {
410280
+ fingerprintParts.push(entry);
410281
+ }
410282
+ }
410277
410283
  }
410278
410284
  } catch (err2) {
410279
410285
  console.warn(`[getDirectoryFingerprint] Failed to access entry '${fullPath}': ${err2}`);
@@ -410343,10 +410349,12 @@ function getSteps() {
410343
410349
  } catch {
410344
410350
  cachedRootMtime = -1;
410345
410351
  }
410346
- try {
410347
- cachedDirFingerprint = getDirectoryFingerprint(cwd2);
410348
- } catch {
410349
- cachedDirFingerprint = "";
410352
+ if (cachedSteps !== null) {
410353
+ try {
410354
+ cachedDirFingerprint = getDirectoryFingerprint(cwd2);
410355
+ } catch {
410356
+ cachedDirFingerprint = "";
410357
+ }
410350
410358
  }
410351
410359
  cachedAt = Date.now();
410352
410360
  cachedSteps = [
@@ -410394,7 +410402,7 @@ function incrementProjectOnboardingSeenCount() {
410394
410402
  projectOnboardingSeenCount: current.projectOnboardingSeenCount + 1
410395
410403
  }));
410396
410404
  }
410397
- var cachedSteps = null, cachedClaudeMdMtime = -1, cachedDirFingerprint = "", cachedRootMtime = -1, cachedAt = null, CACHE_MAX_AGE_MS = 300000;
410405
+ var cachedSteps = null, cachedClaudeMdMtime = -1, cachedDirFingerprint = "", cachedRootMtime = -1, cachedAt = null, CACHE_MAX_AGE_MS = 60000;
410398
410406
  var init_projectOnboardingState = __esm(() => {
410399
410407
  init_config();
410400
410408
  init_cwd2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.180",
3
+ "version": "0.1.181",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",
@@ -127,4 +127,4 @@
127
127
  "overrides": {
128
128
  "node-domexception": "file:./shims/node-domexception"
129
129
  }
130
- }
130
+ }