@funnycode/myclaude 0.1.172 → 0.1.174

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.172",
8
- BUILD_TIME: "2026-08-01T09:40:01.406Z",
7
+ VERSION: "0.1.174",
8
+ BUILD_TIME: "2026-08-01T17:24:38.220Z",
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.172",
119950
+ version: "0.1.174",
119951
119951
  private: false,
119952
119952
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119953
119953
  license: "MIT",
@@ -410152,7 +410152,7 @@ function isInputModeCharacter(input) {
410152
410152
 
410153
410153
  // src/projectOnboardingState.ts
410154
410154
  import { join as join105 } from "path";
410155
- function getDirectoryFingerprint(dirPath, visitedRealPaths) {
410155
+ function getDirectoryFingerprint(dirPath, visitedRealPaths, rootRealPath) {
410156
410156
  const fs13 = getFsImplementation();
410157
410157
  if (!visitedRealPaths) {
410158
410158
  visitedRealPaths = new Set;
@@ -410160,52 +410160,73 @@ function getDirectoryFingerprint(dirPath, visitedRealPaths) {
410160
410160
  let currentRealPath;
410161
410161
  try {
410162
410162
  currentRealPath = fs13.realpathSync(dirPath);
410163
- } catch {
410163
+ } catch (err2) {
410164
+ console.warn(`[getDirectoryFingerprint] Failed to resolve real path for '${dirPath}', using original path: ${err2}`);
410164
410165
  currentRealPath = dirPath;
410165
410166
  }
410166
410167
  if (visitedRealPaths.has(currentRealPath)) {
410167
410168
  return "";
410168
410169
  }
410169
410170
  visitedRealPaths.add(currentRealPath);
410171
+ if (rootRealPath === undefined) {
410172
+ rootRealPath = currentRealPath;
410173
+ }
410170
410174
  let entries;
410171
410175
  try {
410172
410176
  entries = fs13.readdirSync(dirPath).map((dirent) => dirent.name);
410173
- } catch {
410177
+ } catch (err2) {
410178
+ console.warn(`[getDirectoryFingerprint] Failed to read directory '${dirPath}': ${err2}`);
410174
410179
  visitedRealPaths.delete(currentRealPath);
410175
410180
  return "";
410176
410181
  }
410177
410182
  const sortedEntries = entries.sort();
410178
410183
  const fingerprintParts = [];
410179
- for (const entry of sortedEntries) {
410180
- const fullPath = join105(dirPath, entry);
410181
- try {
410182
- const lstat7 = fs13.lstatSync(fullPath);
410183
- if (lstat7.isSymbolicLink()) {
410184
- try {
410185
- const stat37 = fs13.statSync(fullPath);
410186
- if (stat37.isDirectory()) {
410187
- fingerprintParts.push(entry + "/");
410188
- fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410189
- } else {
410190
- fingerprintParts.push(entry);
410184
+ try {
410185
+ for (const entry of sortedEntries) {
410186
+ const fullPath = join105(dirPath, entry);
410187
+ try {
410188
+ const lstat7 = fs13.lstatSync(fullPath);
410189
+ if (lstat7.isSymbolicLink()) {
410190
+ try {
410191
+ const stat37 = fs13.statSync(fullPath);
410192
+ if (stat37.isDirectory()) {
410193
+ let targetRealPath;
410194
+ try {
410195
+ targetRealPath = fs13.realpathSync(fullPath);
410196
+ } catch (err2) {
410197
+ console.warn(`[getDirectoryFingerprint] Failed to resolve target real path for symlink '${fullPath}': ${err2}`);
410198
+ targetRealPath = fullPath;
410199
+ }
410200
+ if (targetRealPath.startsWith(rootRealPath + "/") || targetRealPath === rootRealPath) {
410201
+ fingerprintParts.push(entry + "/");
410202
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths, rootRealPath));
410203
+ } else {
410204
+ fingerprintParts.push(entry + "/");
410205
+ }
410206
+ } else {
410207
+ fingerprintParts.push(entry);
410208
+ }
410209
+ } catch (err2) {
410210
+ console.warn(`[getDirectoryFingerprint] Failed to stat symlink target '${fullPath}': ${err2}`);
410211
+ continue;
410191
410212
  }
410192
- } catch {
410193
- continue;
410194
- }
410195
- } else if (lstat7.isDirectory()) {
410196
- if (entry === "node_modules" || entry === ".git" || entry === "dist" || entry === "build" || entry === ".next" || entry === "out" || entry === "coverage" || entry === "target" || entry === "vendor" || entry === "__pycache__" || entry === ".cache" || entry === ".mypy_cache" || entry === ".svn" || entry === ".hg") {
410197
- continue;
410213
+ } else if (lstat7.isDirectory()) {
410214
+ if (entry === "node_modules" || entry === ".git" || entry === "dist" || entry === "build" || entry === ".next" || entry === "out" || entry === "coverage" || entry === "target" || entry === "vendor" || entry === "__pycache__" || entry === ".cache" || entry === ".mypy_cache" || entry === ".svn" || entry === ".hg") {
410215
+ continue;
410216
+ }
410217
+ fingerprintParts.push(entry + "/");
410218
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410219
+ } else {
410220
+ fingerprintParts.push(entry);
410198
410221
  }
410199
- fingerprintParts.push(entry + "/");
410200
- fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410201
- } else {
410202
- fingerprintParts.push(entry);
410222
+ } catch (err2) {
410223
+ console.warn(`[getDirectoryFingerprint] Failed to access entry '${fullPath}': ${err2}`);
410224
+ continue;
410203
410225
  }
410204
- } catch {
410205
- continue;
410206
410226
  }
410227
+ } finally {
410228
+ visitedRealPaths.delete(currentRealPath);
410207
410229
  }
410208
- visitedRealPaths.delete(currentRealPath);
410209
410230
  return fingerprintParts.join(`
410210
410231
  `);
410211
410232
  }
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.172",
8
- BUILD_TIME: "2026-08-01T09:40:01.406Z",
7
+ VERSION: "0.1.174",
8
+ BUILD_TIME: "2026-08-01T17:24:38.220Z",
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.172",
119950
+ version: "0.1.174",
119951
119951
  private: false,
119952
119952
  description: "An open-source AI coding assistant in your terminal - powered by Claude",
119953
119953
  license: "MIT",
@@ -410152,7 +410152,7 @@ function isInputModeCharacter(input) {
410152
410152
 
410153
410153
  // src/projectOnboardingState.ts
410154
410154
  import { join as join105 } from "path";
410155
- function getDirectoryFingerprint(dirPath, visitedRealPaths) {
410155
+ function getDirectoryFingerprint(dirPath, visitedRealPaths, rootRealPath) {
410156
410156
  const fs13 = getFsImplementation();
410157
410157
  if (!visitedRealPaths) {
410158
410158
  visitedRealPaths = new Set;
@@ -410160,52 +410160,73 @@ function getDirectoryFingerprint(dirPath, visitedRealPaths) {
410160
410160
  let currentRealPath;
410161
410161
  try {
410162
410162
  currentRealPath = fs13.realpathSync(dirPath);
410163
- } catch {
410163
+ } catch (err2) {
410164
+ console.warn(`[getDirectoryFingerprint] Failed to resolve real path for '${dirPath}', using original path: ${err2}`);
410164
410165
  currentRealPath = dirPath;
410165
410166
  }
410166
410167
  if (visitedRealPaths.has(currentRealPath)) {
410167
410168
  return "";
410168
410169
  }
410169
410170
  visitedRealPaths.add(currentRealPath);
410171
+ if (rootRealPath === undefined) {
410172
+ rootRealPath = currentRealPath;
410173
+ }
410170
410174
  let entries;
410171
410175
  try {
410172
410176
  entries = fs13.readdirSync(dirPath).map((dirent) => dirent.name);
410173
- } catch {
410177
+ } catch (err2) {
410178
+ console.warn(`[getDirectoryFingerprint] Failed to read directory '${dirPath}': ${err2}`);
410174
410179
  visitedRealPaths.delete(currentRealPath);
410175
410180
  return "";
410176
410181
  }
410177
410182
  const sortedEntries = entries.sort();
410178
410183
  const fingerprintParts = [];
410179
- for (const entry of sortedEntries) {
410180
- const fullPath = join105(dirPath, entry);
410181
- try {
410182
- const lstat7 = fs13.lstatSync(fullPath);
410183
- if (lstat7.isSymbolicLink()) {
410184
- try {
410185
- const stat37 = fs13.statSync(fullPath);
410186
- if (stat37.isDirectory()) {
410187
- fingerprintParts.push(entry + "/");
410188
- fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410189
- } else {
410190
- fingerprintParts.push(entry);
410184
+ try {
410185
+ for (const entry of sortedEntries) {
410186
+ const fullPath = join105(dirPath, entry);
410187
+ try {
410188
+ const lstat7 = fs13.lstatSync(fullPath);
410189
+ if (lstat7.isSymbolicLink()) {
410190
+ try {
410191
+ const stat37 = fs13.statSync(fullPath);
410192
+ if (stat37.isDirectory()) {
410193
+ let targetRealPath;
410194
+ try {
410195
+ targetRealPath = fs13.realpathSync(fullPath);
410196
+ } catch (err2) {
410197
+ console.warn(`[getDirectoryFingerprint] Failed to resolve target real path for symlink '${fullPath}': ${err2}`);
410198
+ targetRealPath = fullPath;
410199
+ }
410200
+ if (targetRealPath.startsWith(rootRealPath + "/") || targetRealPath === rootRealPath) {
410201
+ fingerprintParts.push(entry + "/");
410202
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths, rootRealPath));
410203
+ } else {
410204
+ fingerprintParts.push(entry + "/");
410205
+ }
410206
+ } else {
410207
+ fingerprintParts.push(entry);
410208
+ }
410209
+ } catch (err2) {
410210
+ console.warn(`[getDirectoryFingerprint] Failed to stat symlink target '${fullPath}': ${err2}`);
410211
+ continue;
410191
410212
  }
410192
- } catch {
410193
- continue;
410194
- }
410195
- } else if (lstat7.isDirectory()) {
410196
- if (entry === "node_modules" || entry === ".git" || entry === "dist" || entry === "build" || entry === ".next" || entry === "out" || entry === "coverage" || entry === "target" || entry === "vendor" || entry === "__pycache__" || entry === ".cache" || entry === ".mypy_cache" || entry === ".svn" || entry === ".hg") {
410197
- continue;
410213
+ } else if (lstat7.isDirectory()) {
410214
+ if (entry === "node_modules" || entry === ".git" || entry === "dist" || entry === "build" || entry === ".next" || entry === "out" || entry === "coverage" || entry === "target" || entry === "vendor" || entry === "__pycache__" || entry === ".cache" || entry === ".mypy_cache" || entry === ".svn" || entry === ".hg") {
410215
+ continue;
410216
+ }
410217
+ fingerprintParts.push(entry + "/");
410218
+ fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410219
+ } else {
410220
+ fingerprintParts.push(entry);
410198
410221
  }
410199
- fingerprintParts.push(entry + "/");
410200
- fingerprintParts.push(getDirectoryFingerprint(fullPath, visitedRealPaths));
410201
- } else {
410202
- fingerprintParts.push(entry);
410222
+ } catch (err2) {
410223
+ console.warn(`[getDirectoryFingerprint] Failed to access entry '${fullPath}': ${err2}`);
410224
+ continue;
410203
410225
  }
410204
- } catch {
410205
- continue;
410206
410226
  }
410227
+ } finally {
410228
+ visitedRealPaths.delete(currentRealPath);
410207
410229
  }
410208
- visitedRealPaths.delete(currentRealPath);
410209
410230
  return fingerprintParts.join(`
410210
410231
  `);
410211
410232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",