@funnycode/myclaude 0.1.169 → 0.1.171

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.169",
8
- BUILD_TIME: "2026-07-31T19:56:09.206Z",
7
+ VERSION: "0.1.171",
8
+ BUILD_TIME: "2026-08-01T06:53:04.674Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -119947,7 +119947,7 @@ var package_default;
119947
119947
  var init_package = __esm(() => {
119948
119948
  package_default = {
119949
119949
  name: "@funnycode/myclaude",
119950
- version: "0.1.169",
119950
+ version: "0.1.171",
119951
119951
  private: false,
119952
119952
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119953
119953
  license: "MIT",
@@ -410205,17 +410205,18 @@ function isCacheValid() {
410205
410205
  } catch {
410206
410206
  return false;
410207
410207
  }
410208
+ let rootMtimeChanged = false;
410208
410209
  try {
410209
- const currentRootMtime = Math.floor(fs13.statSync(cwd2).mtimeMs);
410210
- if (currentRootMtime !== cachedRootMtime) {
410211
- return false;
410212
- }
410210
+ const currentRootMtime = fs13.statSync(cwd2).mtimeMs;
410211
+ rootMtimeChanged = Math.abs(currentRootMtime - cachedRootMtime) > 0.5;
410213
410212
  } catch {
410214
410213
  return false;
410215
410214
  }
410216
- const currentDirFingerprint = getDirectoryFingerprint(cwd2);
410217
- if (currentDirFingerprint !== cachedDirFingerprint) {
410218
- return false;
410215
+ if (rootMtimeChanged) {
410216
+ const currentDirFingerprint = getDirectoryFingerprint(cwd2);
410217
+ if (currentDirFingerprint !== cachedDirFingerprint) {
410218
+ return false;
410219
+ }
410219
410220
  }
410220
410221
  if (cachedAt !== null && Date.now() - cachedAt > CACHE_MAX_AGE_MS) {
410221
410222
  return false;
@@ -410237,7 +410238,7 @@ function getSteps() {
410237
410238
  cachedClaudeMdMtime = -1;
410238
410239
  }
410239
410240
  try {
410240
- cachedRootMtime = Math.floor(fs13.statSync(cwd2).mtimeMs);
410241
+ cachedRootMtime = fs13.statSync(cwd2).mtimeMs;
410241
410242
  } catch {
410242
410243
  cachedRootMtime = -1;
410243
410244
  }
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.169",
8
- BUILD_TIME: "2026-07-31T19:56:09.206Z",
7
+ VERSION: "0.1.171",
8
+ BUILD_TIME: "2026-08-01T06:53:04.674Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -119947,7 +119947,7 @@ var package_default;
119947
119947
  var init_package = __esm(() => {
119948
119948
  package_default = {
119949
119949
  name: "@funnycode/myclaude",
119950
- version: "0.1.169",
119950
+ version: "0.1.171",
119951
119951
  private: false,
119952
119952
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119953
119953
  license: "MIT",
@@ -410205,17 +410205,18 @@ function isCacheValid() {
410205
410205
  } catch {
410206
410206
  return false;
410207
410207
  }
410208
+ let rootMtimeChanged = false;
410208
410209
  try {
410209
- const currentRootMtime = Math.floor(fs13.statSync(cwd2).mtimeMs);
410210
- if (currentRootMtime !== cachedRootMtime) {
410211
- return false;
410212
- }
410210
+ const currentRootMtime = fs13.statSync(cwd2).mtimeMs;
410211
+ rootMtimeChanged = Math.abs(currentRootMtime - cachedRootMtime) > 0.5;
410213
410212
  } catch {
410214
410213
  return false;
410215
410214
  }
410216
- const currentDirFingerprint = getDirectoryFingerprint(cwd2);
410217
- if (currentDirFingerprint !== cachedDirFingerprint) {
410218
- return false;
410215
+ if (rootMtimeChanged) {
410216
+ const currentDirFingerprint = getDirectoryFingerprint(cwd2);
410217
+ if (currentDirFingerprint !== cachedDirFingerprint) {
410218
+ return false;
410219
+ }
410219
410220
  }
410220
410221
  if (cachedAt !== null && Date.now() - cachedAt > CACHE_MAX_AGE_MS) {
410221
410222
  return false;
@@ -410237,7 +410238,7 @@ function getSteps() {
410237
410238
  cachedClaudeMdMtime = -1;
410238
410239
  }
410239
410240
  try {
410240
- cachedRootMtime = Math.floor(fs13.statSync(cwd2).mtimeMs);
410241
+ cachedRootMtime = fs13.statSync(cwd2).mtimeMs;
410241
410242
  } catch {
410242
410243
  cachedRootMtime = -1;
410243
410244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.169",
3
+ "version": "0.1.171",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",