token-goat 2.8.4 → 2.8.6
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/README.md +9 -5
- package/dist/{token-goat-chunk-E76UNTVK.mjs → token-goat-chunk-2JZ66BBE.mjs} +28 -4
- package/dist/{token-goat-chunk-4OTIB7SB.mjs → token-goat-chunk-DK4VLLYB.mjs} +114 -18
- package/dist/{token-goat-chunk-CZALRRGN.mjs → token-goat-chunk-GUNYAGOZ.mjs} +1 -1
- package/dist/{token-goat-chunk-NZFTWBGV.mjs → token-goat-chunk-L2XHDICZ.mjs} +2 -2
- package/dist/{token-goat-chunk-L6YP6FKQ.mjs → token-goat-chunk-LJEETTER.mjs} +5 -5
- package/dist/{token-goat-chunk-ZQ3PUOP3.mjs → token-goat-chunk-MA5237JN.mjs} +23 -66
- package/dist/{token-goat-chunk-HNODKNWO.mjs → token-goat-chunk-SHN4UTL4.mjs} +5 -5
- package/dist/{token-goat-chunk-IZRXU64B.mjs → token-goat-chunk-TELKICYU.mjs} +6 -4
- package/dist/{token-goat-chunk-U4UI5F3S.mjs → token-goat-chunk-U7M2LTGP.mjs} +162 -96
- package/dist/{token-goat-chunk-RE7S7H26.mjs → token-goat-chunk-XAWIELXH.mjs} +110 -59
- package/dist/{token-goat-chunk-LZOAPGWR.mjs → token-goat-chunk-ZIPBLIUZ.mjs} +3 -3
- package/dist/token-goat-hook.mjs +5 -5
- package/dist/token-goat.core.mjs +5 -5
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
expandGlobs,
|
|
8
8
|
leftoverIntegrations,
|
|
9
9
|
run
|
|
10
|
-
} from "./token-goat-chunk-
|
|
11
|
-
import "./token-goat-chunk-
|
|
12
|
-
import "./token-goat-chunk-
|
|
13
|
-
import "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-U7M2LTGP.mjs";
|
|
11
|
+
import "./token-goat-chunk-XAWIELXH.mjs";
|
|
12
|
+
import "./token-goat-chunk-TELKICYU.mjs";
|
|
13
|
+
import "./token-goat-chunk-DK4VLLYB.mjs";
|
|
14
|
+
import "./token-goat-chunk-2JZ66BBE.mjs";
|
|
15
15
|
import "./token-goat-chunk-AO2QD2AG.mjs";
|
|
16
16
|
import "./token-goat-chunk-AEX54RUZ.mjs";
|
|
17
17
|
export {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
loadBlob,
|
|
9
9
|
sanitizeFtsQuery,
|
|
10
10
|
storeBlob
|
|
11
|
-
} from "./token-goat-chunk-
|
|
11
|
+
} from "./token-goat-chunk-DK4VLLYB.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SYMBOL_BODY_CHAR_CAP,
|
|
14
14
|
extractErrorMessage,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
redactSecrets,
|
|
19
19
|
runGit,
|
|
20
20
|
shortFingerprint
|
|
21
|
-
} from "./token-goat-chunk-
|
|
21
|
+
} from "./token-goat-chunk-2JZ66BBE.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerReset
|
|
24
24
|
} from "./token-goat-chunk-AO2QD2AG.mjs";
|
|
@@ -309,6 +309,7 @@ function normalizePayload(payload, harness = "claude") {
|
|
|
309
309
|
|
|
310
310
|
// src/recall_index.ts
|
|
311
311
|
var VALID_TYPES = ["bash", "web", "mcp"];
|
|
312
|
+
var RECALL_DEFAULT_LIMIT = 10;
|
|
312
313
|
function isRecallCacheType(value) {
|
|
313
314
|
return VALID_TYPES.includes(value);
|
|
314
315
|
}
|
|
@@ -414,7 +415,7 @@ function likeSearch(query, type, limit) {
|
|
|
414
415
|
return mapRowsToHits(rows, trimmed);
|
|
415
416
|
}
|
|
416
417
|
function listRecentRecall(opts = {}) {
|
|
417
|
-
const limit = opts.limit ??
|
|
418
|
+
const limit = opts.limit ?? RECALL_DEFAULT_LIMIT;
|
|
418
419
|
const columns = `SELECT entry_id AS id, cache_type AS cacheType, label, content, stored_at AS storedAt FROM cache_recall`;
|
|
419
420
|
try {
|
|
420
421
|
const db = getDb(globalDbPath());
|
|
@@ -425,7 +426,7 @@ function listRecentRecall(opts = {}) {
|
|
|
425
426
|
}
|
|
426
427
|
}
|
|
427
428
|
function searchRecall(query, opts = {}) {
|
|
428
|
-
const limit = opts.limit ??
|
|
429
|
+
const limit = opts.limit ?? RECALL_DEFAULT_LIMIT;
|
|
429
430
|
if (query.trim() === "") return [];
|
|
430
431
|
try {
|
|
431
432
|
if (hasFtsTable()) {
|
|
@@ -1227,6 +1228,7 @@ export {
|
|
|
1227
1228
|
readCopilotMcpTools,
|
|
1228
1229
|
GEMINI_TOOL_NAME_MAP,
|
|
1229
1230
|
normalizePayload,
|
|
1231
|
+
RECALL_DEFAULT_LIMIT,
|
|
1230
1232
|
isRecallCacheType,
|
|
1231
1233
|
indexRecallEntry,
|
|
1232
1234
|
listRecentRecall,
|