@funnycode/myclaude 0.1.194 → 0.1.196
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 -7
- package/dist/myclaude.mjs +17 -7
- 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-08-
|
|
7
|
+
VERSION: "0.1.196",
|
|
8
|
+
BUILD_TIME: "2026-08-16T00:49:36.032Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117157,7 +117157,7 @@ var package_default;
|
|
|
117157
117157
|
var init_package = __esm(() => {
|
|
117158
117158
|
package_default = {
|
|
117159
117159
|
name: "@funnycode/myclaude",
|
|
117160
|
-
version: "0.1.
|
|
117160
|
+
version: "0.1.196",
|
|
117161
117161
|
private: false,
|
|
117162
117162
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117163
117163
|
license: "MIT",
|
|
@@ -412562,7 +412562,6 @@ var init_file_index = __esm(() => {
|
|
|
412562
412562
|
});
|
|
412563
412563
|
|
|
412564
412564
|
// src/hooks/fileSuggestions.ts
|
|
412565
|
-
import { statSync as statSync10 } from "fs";
|
|
412566
412565
|
import * as path21 from "path";
|
|
412567
412566
|
function getFileIndex() {
|
|
412568
412567
|
if (!fileIndex) {
|
|
@@ -412583,6 +412582,8 @@ function clearFileSuggestionCaches() {
|
|
|
412583
412582
|
ignorePatternsCacheKey = null;
|
|
412584
412583
|
lastRefreshMs = 0;
|
|
412585
412584
|
lastGitIndexMtime = null;
|
|
412585
|
+
lastGitIndexMtimeCheckMs = 0;
|
|
412586
|
+
cachedGitIndexMtime = null;
|
|
412586
412587
|
loadedTrackedSignature = null;
|
|
412587
412588
|
loadedMergedSignature = null;
|
|
412588
412589
|
}
|
|
@@ -412606,12 +412607,21 @@ function pathListSignature(paths2) {
|
|
|
412606
412607
|
return `${n2}:${(h2 >>> 0).toString(16)}`;
|
|
412607
412608
|
}
|
|
412608
412609
|
function getGitIndexMtime() {
|
|
412610
|
+
const now2 = Date.now();
|
|
412611
|
+
if (now2 - lastGitIndexMtimeCheckMs < GIT_INDEX_MTIME_TTL_MS) {
|
|
412612
|
+
return cachedGitIndexMtime;
|
|
412613
|
+
}
|
|
412614
|
+
lastGitIndexMtimeCheckMs = now2;
|
|
412609
412615
|
const repoRoot = findGitRoot(getCwd());
|
|
412610
|
-
if (!repoRoot)
|
|
412616
|
+
if (!repoRoot) {
|
|
412617
|
+
cachedGitIndexMtime = null;
|
|
412611
412618
|
return null;
|
|
412619
|
+
}
|
|
412612
412620
|
try {
|
|
412613
|
-
|
|
412621
|
+
cachedGitIndexMtime = getFsImplementation().statSync(path21.join(repoRoot, ".git", "index")).mtimeMs;
|
|
412622
|
+
return cachedGitIndexMtime;
|
|
412614
412623
|
} catch {
|
|
412624
|
+
cachedGitIndexMtime = null;
|
|
412615
412625
|
return null;
|
|
412616
412626
|
}
|
|
412617
412627
|
}
|
|
@@ -412973,7 +412983,7 @@ function applyFileSuggestion(suggestion, input, partialPath, startPos, onInputCh
|
|
|
412973
412983
|
const newCursorPos = startPos + suggestionText.length;
|
|
412974
412984
|
setCursorOffset(newCursorPos);
|
|
412975
412985
|
}
|
|
412976
|
-
var import_ignore4, fileIndex = null, fileListRefreshPromise = null, indexBuildComplete, onIndexBuildComplete, cacheGeneration = 0, untrackedFetchPromise = null, cachedTrackedFiles, cachedConfigFiles, cachedTrackedDirs, ignorePatternsCache = null, ignorePatternsCacheKey = null, lastRefreshMs = 0, lastGitIndexMtime = null, loadedTrackedSignature = null, loadedMergedSignature = null, MAX_SUGGESTIONS = 15, REFRESH_THROTTLE_MS = 5000;
|
|
412986
|
+
var import_ignore4, fileIndex = null, fileListRefreshPromise = null, indexBuildComplete, onIndexBuildComplete, cacheGeneration = 0, untrackedFetchPromise = null, cachedTrackedFiles, cachedConfigFiles, cachedTrackedDirs, ignorePatternsCache = null, ignorePatternsCacheKey = null, lastRefreshMs = 0, lastGitIndexMtime = null, GIT_INDEX_MTIME_TTL_MS = 1000, lastGitIndexMtimeCheckMs = 0, cachedGitIndexMtime = null, loadedTrackedSignature = null, loadedMergedSignature = null, MAX_SUGGESTIONS = 15, REFRESH_THROTTLE_MS = 5000;
|
|
412977
412987
|
var init_fileSuggestions = __esm(() => {
|
|
412978
412988
|
init_markdownConfigLoader();
|
|
412979
412989
|
init_file_index();
|
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-08-
|
|
7
|
+
VERSION: "0.1.196",
|
|
8
|
+
BUILD_TIME: "2026-08-16T00:49:36.032Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117157,7 +117157,7 @@ var package_default;
|
|
|
117157
117157
|
var init_package = __esm(() => {
|
|
117158
117158
|
package_default = {
|
|
117159
117159
|
name: "@funnycode/myclaude",
|
|
117160
|
-
version: "0.1.
|
|
117160
|
+
version: "0.1.196",
|
|
117161
117161
|
private: false,
|
|
117162
117162
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117163
117163
|
license: "MIT",
|
|
@@ -412562,7 +412562,6 @@ var init_file_index = __esm(() => {
|
|
|
412562
412562
|
});
|
|
412563
412563
|
|
|
412564
412564
|
// src/hooks/fileSuggestions.ts
|
|
412565
|
-
import { statSync as statSync10 } from "fs";
|
|
412566
412565
|
import * as path21 from "path";
|
|
412567
412566
|
function getFileIndex() {
|
|
412568
412567
|
if (!fileIndex) {
|
|
@@ -412583,6 +412582,8 @@ function clearFileSuggestionCaches() {
|
|
|
412583
412582
|
ignorePatternsCacheKey = null;
|
|
412584
412583
|
lastRefreshMs = 0;
|
|
412585
412584
|
lastGitIndexMtime = null;
|
|
412585
|
+
lastGitIndexMtimeCheckMs = 0;
|
|
412586
|
+
cachedGitIndexMtime = null;
|
|
412586
412587
|
loadedTrackedSignature = null;
|
|
412587
412588
|
loadedMergedSignature = null;
|
|
412588
412589
|
}
|
|
@@ -412606,12 +412607,21 @@ function pathListSignature(paths2) {
|
|
|
412606
412607
|
return `${n2}:${(h2 >>> 0).toString(16)}`;
|
|
412607
412608
|
}
|
|
412608
412609
|
function getGitIndexMtime() {
|
|
412610
|
+
const now2 = Date.now();
|
|
412611
|
+
if (now2 - lastGitIndexMtimeCheckMs < GIT_INDEX_MTIME_TTL_MS) {
|
|
412612
|
+
return cachedGitIndexMtime;
|
|
412613
|
+
}
|
|
412614
|
+
lastGitIndexMtimeCheckMs = now2;
|
|
412609
412615
|
const repoRoot = findGitRoot(getCwd());
|
|
412610
|
-
if (!repoRoot)
|
|
412616
|
+
if (!repoRoot) {
|
|
412617
|
+
cachedGitIndexMtime = null;
|
|
412611
412618
|
return null;
|
|
412619
|
+
}
|
|
412612
412620
|
try {
|
|
412613
|
-
|
|
412621
|
+
cachedGitIndexMtime = getFsImplementation().statSync(path21.join(repoRoot, ".git", "index")).mtimeMs;
|
|
412622
|
+
return cachedGitIndexMtime;
|
|
412614
412623
|
} catch {
|
|
412624
|
+
cachedGitIndexMtime = null;
|
|
412615
412625
|
return null;
|
|
412616
412626
|
}
|
|
412617
412627
|
}
|
|
@@ -412973,7 +412983,7 @@ function applyFileSuggestion(suggestion, input, partialPath, startPos, onInputCh
|
|
|
412973
412983
|
const newCursorPos = startPos + suggestionText.length;
|
|
412974
412984
|
setCursorOffset(newCursorPos);
|
|
412975
412985
|
}
|
|
412976
|
-
var import_ignore4, fileIndex = null, fileListRefreshPromise = null, indexBuildComplete, onIndexBuildComplete, cacheGeneration = 0, untrackedFetchPromise = null, cachedTrackedFiles, cachedConfigFiles, cachedTrackedDirs, ignorePatternsCache = null, ignorePatternsCacheKey = null, lastRefreshMs = 0, lastGitIndexMtime = null, loadedTrackedSignature = null, loadedMergedSignature = null, MAX_SUGGESTIONS = 15, REFRESH_THROTTLE_MS = 5000;
|
|
412986
|
+
var import_ignore4, fileIndex = null, fileListRefreshPromise = null, indexBuildComplete, onIndexBuildComplete, cacheGeneration = 0, untrackedFetchPromise = null, cachedTrackedFiles, cachedConfigFiles, cachedTrackedDirs, ignorePatternsCache = null, ignorePatternsCacheKey = null, lastRefreshMs = 0, lastGitIndexMtime = null, GIT_INDEX_MTIME_TTL_MS = 1000, lastGitIndexMtimeCheckMs = 0, cachedGitIndexMtime = null, loadedTrackedSignature = null, loadedMergedSignature = null, MAX_SUGGESTIONS = 15, REFRESH_THROTTLE_MS = 5000;
|
|
412977
412987
|
var init_fileSuggestions = __esm(() => {
|
|
412978
412988
|
init_markdownConfigLoader();
|
|
412979
412989
|
init_file_index();
|