token-goat 2.9.19 → 2.9.21
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 +3 -1
- package/dist/{token-goat-chunk-JNIFSVWM.mjs → token-goat-chunk-2ZHD3XCD.mjs} +5 -1
- package/dist/{token-goat-chunk-P46RTOAQ.mjs → token-goat-chunk-4IIU3GNS.mjs} +10 -7
- package/dist/{token-goat-chunk-2GTB5RBZ.mjs → token-goat-chunk-4V4OZHHV.mjs} +11 -271
- package/dist/token-goat-chunk-64OEF3UN.mjs +128 -0
- package/dist/{token-goat-chunk-AVRD7SBO.mjs → token-goat-chunk-6AQLZMCO.mjs} +270 -29
- package/dist/{token-goat-chunk-LACH3WKS.mjs → token-goat-chunk-BIEDTF6V.mjs} +3 -3
- package/dist/{token-goat-chunk-PIAESKVU.mjs → token-goat-chunk-BKHJRFDE.mjs} +568 -429
- package/dist/token-goat-chunk-CAHN4QU7.mjs +26 -0
- package/dist/{token-goat-chunk-MU6I4IDI.mjs → token-goat-chunk-CMAJGP3E.mjs} +11 -7
- package/dist/token-goat-chunk-CMHBTXMY.mjs +41 -0
- package/dist/{token-goat-chunk-HPMMLV37.mjs → token-goat-chunk-CZ5ZFJSN.mjs} +256 -341
- package/dist/{token-goat-chunk-7DGTVBWP.mjs → token-goat-chunk-DDP64XR7.mjs} +159 -1863
- package/dist/{token-goat-chunk-FX5DHKGF.mjs → token-goat-chunk-DISVHOW6.mjs} +4 -4
- package/dist/{token-goat-chunk-L2UOJBV4.mjs → token-goat-chunk-FZN77SZD.mjs} +27 -19
- package/dist/{token-goat-chunk-DA6TIDLI.mjs → token-goat-chunk-GO7OWONJ.mjs} +18 -13
- package/dist/{token-goat-chunk-EP7TCWHM.mjs → token-goat-chunk-IAMIQLCV.mjs} +83 -66
- package/dist/{token-goat-chunk-NJKNAC37.mjs → token-goat-chunk-IJUHQX2M.mjs} +1 -1
- package/dist/token-goat-chunk-KQI24O4B.mjs +292 -0
- package/dist/{token-goat-chunk-GYC34EGE.mjs → token-goat-chunk-KRPJIXCT.mjs} +2 -2
- package/dist/token-goat-chunk-KVAXTA2W.mjs +198 -0
- package/dist/{token-goat-chunk-FJZ5MZK7.mjs → token-goat-chunk-LK3YOKDF.mjs} +2 -2
- package/dist/token-goat-chunk-M43UJVYQ.mjs +1816 -0
- package/dist/{token-goat-chunk-SOKAPOOC.mjs → token-goat-chunk-M6CDVASA.mjs} +46 -47
- package/dist/token-goat-chunk-MECDAPXB.mjs +1989 -0
- package/dist/token-goat-chunk-MEKVJZUN.mjs +324 -0
- package/dist/token-goat-chunk-MQACN7VG.mjs +1379 -0
- package/dist/{token-goat-chunk-3W5P673V.mjs → token-goat-chunk-MZQORUX5.mjs} +1 -1
- package/dist/{token-goat-chunk-DHIXE6GV.mjs → token-goat-chunk-ORRDWKLA.mjs} +1 -1
- package/dist/{token-goat-chunk-F24NE3FO.mjs → token-goat-chunk-PCR43MCM.mjs} +2 -2
- package/dist/token-goat-chunk-PDYQA3AP.mjs +248 -0
- package/dist/{token-goat-chunk-S7RFIX4Y.mjs → token-goat-chunk-PHDNWISV.mjs} +45 -14
- package/dist/token-goat-chunk-PPYZS7TI.mjs +304 -0
- package/dist/{token-goat-chunk-BTKDZW7F.mjs → token-goat-chunk-QTIRVK3M.mjs} +1 -1
- package/dist/{token-goat-chunk-62VJ47WN.mjs → token-goat-chunk-QUM3UNWS.mjs} +5 -5
- package/dist/{token-goat-chunk-KWM6KBPA.mjs → token-goat-chunk-SHV6QQAS.mjs} +1 -1
- package/dist/{token-goat-chunk-FQYMZASI.mjs → token-goat-chunk-SMUYPBF5.mjs} +796 -4464
- package/dist/{token-goat-chunk-ZGQXRYKE.mjs → token-goat-chunk-TGBSMHPM.mjs} +1 -1
- package/dist/{token-goat-chunk-EXLLLIC3.mjs → token-goat-chunk-VXKT3W4C.mjs} +3 -3
- package/dist/{token-goat-chunk-WKO5TVNA.mjs → token-goat-chunk-XJUPKJF5.mjs} +544 -576
- package/dist/{token-goat-chunk-IBTFGZBX.mjs → token-goat-chunk-XQSSPX3X.mjs} +2 -2
- package/dist/{token-goat-chunk-VJQBYSXG.mjs → token-goat-chunk-ZJWPJL7O.mjs} +3 -3
- package/dist/token-goat-hook.mjs +17 -11
- package/dist/token-goat.core.mjs +27 -19
- package/docs/C4_RUNTIME_ARCHITECTURE.md +1 -1
- package/docs/cli.md +13 -12
- package/docs/install.md +1 -1
- package/docs/security.md +2 -2
- package/package.json +3 -2
- package/dist/token-goat-chunk-NYFYIRG3.mjs +0 -35
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
querySheet,
|
|
11
11
|
rangeSheet,
|
|
12
12
|
xlsxColumns
|
|
13
|
-
} from "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
13
|
+
} from "./token-goat-chunk-LK3YOKDF.mjs";
|
|
14
|
+
import "./token-goat-chunk-SHV6QQAS.mjs";
|
|
15
15
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
16
|
-
import "./token-goat-chunk-
|
|
16
|
+
import "./token-goat-chunk-QTIRVK3M.mjs";
|
|
17
17
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
18
18
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
19
|
-
import "./token-goat-chunk-
|
|
19
|
+
import "./token-goat-chunk-TGBSMHPM.mjs";
|
|
20
20
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
21
21
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
22
22
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -70,35 +70,43 @@ import {
|
|
|
70
70
|
requirePositiveInt,
|
|
71
71
|
run,
|
|
72
72
|
visualStudioManualSteps
|
|
73
|
-
} from "./token-goat-chunk-
|
|
74
|
-
import "./token-goat-chunk-
|
|
75
|
-
import "./token-goat-chunk-
|
|
76
|
-
import "./token-goat-chunk-
|
|
73
|
+
} from "./token-goat-chunk-XJUPKJF5.mjs";
|
|
74
|
+
import "./token-goat-chunk-KRPJIXCT.mjs";
|
|
75
|
+
import "./token-goat-chunk-PPYZS7TI.mjs";
|
|
76
|
+
import "./token-goat-chunk-64OEF3UN.mjs";
|
|
77
|
+
import "./token-goat-chunk-BKHJRFDE.mjs";
|
|
78
|
+
import "./token-goat-chunk-PCR43MCM.mjs";
|
|
77
79
|
import "./token-goat-chunk-DA43OE7L.mjs";
|
|
78
80
|
import {
|
|
79
81
|
cmdDescribe,
|
|
80
82
|
cmdSessionSchema
|
|
81
|
-
} from "./token-goat-chunk-
|
|
82
|
-
import "./token-goat-chunk-
|
|
83
|
-
import "./token-goat-chunk-
|
|
84
|
-
import "./token-goat-chunk-
|
|
83
|
+
} from "./token-goat-chunk-4V4OZHHV.mjs";
|
|
84
|
+
import "./token-goat-chunk-KQI24O4B.mjs";
|
|
85
|
+
import "./token-goat-chunk-PDYQA3AP.mjs";
|
|
86
|
+
import "./token-goat-chunk-SMUYPBF5.mjs";
|
|
87
|
+
import "./token-goat-chunk-DDP64XR7.mjs";
|
|
88
|
+
import "./token-goat-chunk-MQACN7VG.mjs";
|
|
89
|
+
import "./token-goat-chunk-MECDAPXB.mjs";
|
|
90
|
+
import "./token-goat-chunk-MEKVJZUN.mjs";
|
|
91
|
+
import "./token-goat-chunk-M43UJVYQ.mjs";
|
|
92
|
+
import "./token-goat-chunk-PHDNWISV.mjs";
|
|
85
93
|
import "./token-goat-chunk-LKSXAMJB.mjs";
|
|
86
|
-
import "./token-goat-chunk-
|
|
87
|
-
import "./token-goat-chunk-
|
|
88
|
-
import "./token-goat-chunk-
|
|
89
|
-
import "./token-goat-chunk-
|
|
94
|
+
import "./token-goat-chunk-ORRDWKLA.mjs";
|
|
95
|
+
import "./token-goat-chunk-MZQORUX5.mjs";
|
|
96
|
+
import "./token-goat-chunk-LK3YOKDF.mjs";
|
|
97
|
+
import "./token-goat-chunk-SHV6QQAS.mjs";
|
|
90
98
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
91
|
-
import "./token-goat-chunk-
|
|
99
|
+
import "./token-goat-chunk-QTIRVK3M.mjs";
|
|
92
100
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
93
101
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
94
|
-
import "./token-goat-chunk-
|
|
95
|
-
import "./token-goat-chunk-
|
|
96
|
-
import "./token-goat-chunk-
|
|
97
|
-
import "./token-goat-chunk-
|
|
98
|
-
import "./token-goat-chunk-
|
|
102
|
+
import "./token-goat-chunk-IJUHQX2M.mjs";
|
|
103
|
+
import "./token-goat-chunk-IAMIQLCV.mjs";
|
|
104
|
+
import "./token-goat-chunk-XQSSPX3X.mjs";
|
|
105
|
+
import "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
106
|
+
import "./token-goat-chunk-M6CDVASA.mjs";
|
|
99
107
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
100
108
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
101
|
-
import "./token-goat-chunk-
|
|
109
|
+
import "./token-goat-chunk-TGBSMHPM.mjs";
|
|
102
110
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
103
111
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
104
112
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -26,43 +26,48 @@ import {
|
|
|
26
26
|
runSkeleton,
|
|
27
27
|
runSymbol,
|
|
28
28
|
withPinnedReads
|
|
29
|
-
} from "./token-goat-chunk-
|
|
30
|
-
import "./token-goat-chunk-
|
|
29
|
+
} from "./token-goat-chunk-BKHJRFDE.mjs";
|
|
30
|
+
import "./token-goat-chunk-PCR43MCM.mjs";
|
|
31
31
|
import "./token-goat-chunk-DA43OE7L.mjs";
|
|
32
32
|
import {
|
|
33
33
|
buildProjectMap,
|
|
34
|
-
claudeConfigDir,
|
|
35
34
|
formatProjectMap,
|
|
36
35
|
getDirtyPathsFor,
|
|
37
36
|
getEmbeddingCoverage,
|
|
38
37
|
getProjectIndexCounts,
|
|
39
38
|
isWorkerRunning,
|
|
40
39
|
mapLookupBytesSaved
|
|
41
|
-
} from "./token-goat-chunk-
|
|
42
|
-
import "./token-goat-chunk-
|
|
40
|
+
} from "./token-goat-chunk-SMUYPBF5.mjs";
|
|
41
|
+
import "./token-goat-chunk-DDP64XR7.mjs";
|
|
42
|
+
import "./token-goat-chunk-MQACN7VG.mjs";
|
|
43
|
+
import "./token-goat-chunk-MECDAPXB.mjs";
|
|
44
|
+
import {
|
|
45
|
+
claudeConfigDir
|
|
46
|
+
} from "./token-goat-chunk-MEKVJZUN.mjs";
|
|
47
|
+
import "./token-goat-chunk-M43UJVYQ.mjs";
|
|
43
48
|
import {
|
|
44
49
|
recordStat,
|
|
45
50
|
savedTokensFromBytes
|
|
46
|
-
} from "./token-goat-chunk-
|
|
51
|
+
} from "./token-goat-chunk-PHDNWISV.mjs";
|
|
47
52
|
import "./token-goat-chunk-LKSXAMJB.mjs";
|
|
48
|
-
import "./token-goat-chunk-
|
|
53
|
+
import "./token-goat-chunk-SHV6QQAS.mjs";
|
|
49
54
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
50
55
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
51
56
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
52
|
-
import "./token-goat-chunk-
|
|
57
|
+
import "./token-goat-chunk-IJUHQX2M.mjs";
|
|
53
58
|
import {
|
|
54
59
|
checkEmbeddingPreflight,
|
|
55
60
|
embeddingsDepsAvailable
|
|
56
|
-
} from "./token-goat-chunk-
|
|
57
|
-
import "./token-goat-chunk-
|
|
61
|
+
} from "./token-goat-chunk-IAMIQLCV.mjs";
|
|
62
|
+
import "./token-goat-chunk-XQSSPX3X.mjs";
|
|
58
63
|
import {
|
|
59
64
|
getDb
|
|
60
|
-
} from "./token-goat-chunk-
|
|
65
|
+
} from "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
61
66
|
import {
|
|
62
67
|
envStrList,
|
|
63
68
|
loadConfig,
|
|
64
69
|
resolveProjectRoot
|
|
65
|
-
} from "./token-goat-chunk-
|
|
70
|
+
} from "./token-goat-chunk-M6CDVASA.mjs";
|
|
66
71
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
67
72
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
68
73
|
import {
|
|
@@ -72,7 +77,7 @@ import {
|
|
|
72
77
|
extractErrorMessage,
|
|
73
78
|
foldCaseForContainment,
|
|
74
79
|
globalDbPath
|
|
75
|
-
} from "./token-goat-chunk-
|
|
80
|
+
} from "./token-goat-chunk-TGBSMHPM.mjs";
|
|
76
81
|
import {
|
|
77
82
|
displaySafeJson,
|
|
78
83
|
normalizePath
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
pathEqClause,
|
|
5
5
|
projectScopeClause,
|
|
6
6
|
querySymbols
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-XQSSPX3X.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TREE_SITTER_LANGUAGES,
|
|
10
10
|
_detectOpenQuote,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
stripJsComments,
|
|
22
22
|
stripStringLiterals,
|
|
23
23
|
stripXmlComments
|
|
24
|
-
} from "./token-goat-chunk-
|
|
24
|
+
} from "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
25
25
|
import {
|
|
26
26
|
fingerprintContent,
|
|
27
27
|
loadConfig
|
|
28
|
-
} from "./token-goat-chunk-
|
|
28
|
+
} from "./token-goat-chunk-M6CDVASA.mjs";
|
|
29
29
|
import {
|
|
30
30
|
registerReset
|
|
31
31
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
foldPath,
|
|
40
40
|
globalDbPath,
|
|
41
41
|
isCaseInsensitiveFs
|
|
42
|
-
} from "./token-goat-chunk-
|
|
42
|
+
} from "./token-goat-chunk-TGBSMHPM.mjs";
|
|
43
43
|
import {
|
|
44
44
|
displaySafeText,
|
|
45
45
|
normalizePath
|
|
@@ -74,11 +74,11 @@ async function extractEmbeddableDocumentText(filePath) {
|
|
|
74
74
|
return text;
|
|
75
75
|
}
|
|
76
76
|
case ".docx":
|
|
77
|
-
return await (await import("./token-goat-chunk-
|
|
77
|
+
return await (await import("./token-goat-chunk-VXKT3W4C.mjs")).docxText(filePath);
|
|
78
78
|
case ".pptx":
|
|
79
|
-
return await (await import("./token-goat-chunk-
|
|
79
|
+
return await (await import("./token-goat-chunk-BIEDTF6V.mjs")).pptxAllSlidesText(filePath, true);
|
|
80
80
|
case ".xlsx":
|
|
81
|
-
return await (await import("./token-goat-chunk-
|
|
81
|
+
return await (await import("./token-goat-chunk-DISVHOW6.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
|
|
82
82
|
default:
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
@@ -309,7 +309,7 @@ var BertWordPiece = class _BertWordPiece {
|
|
|
309
309
|
var _require = createRequire(import.meta.url);
|
|
310
310
|
var DEFAULT_MODEL = "Xenova/bge-small-en-v1.5";
|
|
311
311
|
var DEFAULT_DIM = 384;
|
|
312
|
-
var DEFAULT_EMBED_THREADS =
|
|
312
|
+
var DEFAULT_EMBED_THREADS = 4;
|
|
313
313
|
var PINNED_MODEL_REVISION = "ea104dacec62c0de699686887e3f920caeb4f3e3";
|
|
314
314
|
var MODEL_FILES = [
|
|
315
315
|
{
|
|
@@ -697,13 +697,13 @@ init_define_import_meta_env();
|
|
|
697
697
|
|
|
698
698
|
// src/embed_fingerprint.ts
|
|
699
699
|
init_define_import_meta_env();
|
|
700
|
-
var EMBED_FINGERPRINT = "
|
|
700
|
+
var EMBED_FINGERPRINT = "702c126bffd8439e";
|
|
701
701
|
var EMBED_KIND_FINGERPRINTS = /* @__PURE__ */ new Map([
|
|
702
|
-
["docx", "
|
|
703
|
-
["markdown", "
|
|
704
|
-
["pdf", "
|
|
705
|
-
["pptx", "
|
|
706
|
-
["xlsx", "
|
|
702
|
+
["docx", "a39e82e795d46ed1"],
|
|
703
|
+
["markdown", "c65dd62705244608"],
|
|
704
|
+
["pdf", "9a0ea76d66dfd358"],
|
|
705
|
+
["pptx", "b60b30cb38a801e2"],
|
|
706
|
+
["xlsx", "e5b358c460b6507f"]
|
|
707
707
|
]);
|
|
708
708
|
var PRE_KIND_EMBED_FINGERPRINT = "b7b2ff71de288d13";
|
|
709
709
|
var SPLIT_EMBED_FINGERPRINT = "2310db32d9bc8a2b";
|
|
@@ -1469,57 +1469,60 @@ init_define_import_meta_env();
|
|
|
1469
1469
|
|
|
1470
1470
|
// src/parser_fingerprint.ts
|
|
1471
1471
|
init_define_import_meta_env();
|
|
1472
|
-
var PARSER_FINGERPRINT = "
|
|
1472
|
+
var PARSER_FINGERPRINT = "6aa8597ec9d03c45";
|
|
1473
1473
|
var LANGUAGE_PARSER_FINGERPRINTS = /* @__PURE__ */ new Map([
|
|
1474
|
-
["abap", "
|
|
1475
|
-
["abl", "
|
|
1476
|
-
["
|
|
1477
|
-
["
|
|
1478
|
-
["
|
|
1479
|
-
["
|
|
1480
|
-
["
|
|
1481
|
-
["
|
|
1482
|
-
["
|
|
1483
|
-
["
|
|
1484
|
-
["
|
|
1485
|
-
["
|
|
1486
|
-
["
|
|
1487
|
-
["
|
|
1488
|
-
["
|
|
1489
|
-
["
|
|
1490
|
-
["
|
|
1491
|
-
["
|
|
1492
|
-
["
|
|
1493
|
-
["
|
|
1494
|
-
["
|
|
1495
|
-
["
|
|
1496
|
-
["
|
|
1497
|
-
["
|
|
1498
|
-
["
|
|
1499
|
-
["
|
|
1500
|
-
["
|
|
1501
|
-
["
|
|
1502
|
-
["
|
|
1503
|
-
["
|
|
1504
|
-
["
|
|
1505
|
-
["
|
|
1506
|
-
["
|
|
1507
|
-
["
|
|
1508
|
-
["
|
|
1509
|
-
["
|
|
1510
|
-
["
|
|
1511
|
-
["
|
|
1512
|
-
["
|
|
1513
|
-
["
|
|
1514
|
-
["
|
|
1515
|
-
["
|
|
1516
|
-
["
|
|
1517
|
-
["
|
|
1518
|
-
["
|
|
1519
|
-
["
|
|
1520
|
-
["
|
|
1521
|
-
["
|
|
1522
|
-
["
|
|
1474
|
+
["abap", "f04854be73660475"],
|
|
1475
|
+
["abl", "92fd58c2ee0b918b"],
|
|
1476
|
+
["apache", "7c95ef50634c1e09"],
|
|
1477
|
+
["apex", "be6bbaefcb5acddb"],
|
|
1478
|
+
["asm", "35e5d09b5cfbdb5f"],
|
|
1479
|
+
["bash", "98979a536200c7c9"],
|
|
1480
|
+
["batch", "9db39636b1d69081"],
|
|
1481
|
+
["caddy", "76dba4266f9139dd"],
|
|
1482
|
+
["clojure", "cfb5e36a85980247"],
|
|
1483
|
+
["cmake", "6186c70e61c9d839"],
|
|
1484
|
+
["common_lisp", "e0a4e8032901773b"],
|
|
1485
|
+
["csharp", "75e6ce02f1b0f78a"],
|
|
1486
|
+
["dart", "2284bca2faefe5fb"],
|
|
1487
|
+
["elixir", "d63188b2f0c64139"],
|
|
1488
|
+
["emacs_lisp", "98ea21315946c308"],
|
|
1489
|
+
["erlang", "0471440a285fc4cb"],
|
|
1490
|
+
["fortran", "c3b563bc9ce74947"],
|
|
1491
|
+
["fsharp", "a9476da9ac62bbc9"],
|
|
1492
|
+
["graphql", "c9b2180a2a0af6b0"],
|
|
1493
|
+
["groovy", "8442e7c34152b2b2"],
|
|
1494
|
+
["haskell", "23dec895c732def8"],
|
|
1495
|
+
["jcl", "73a786da77c4db23"],
|
|
1496
|
+
["kotlin", "ab4460277c29b952"],
|
|
1497
|
+
["liquid", "6cc72f94e2d6ba68"],
|
|
1498
|
+
["lua", "75f1e747e58a9d15"],
|
|
1499
|
+
["makefile", "5c73d6f841946735"],
|
|
1500
|
+
["matlab", "9f6e3c63639e078e"],
|
|
1501
|
+
["nginx", "7ebbbaf472f741da"],
|
|
1502
|
+
["nix", "d94c2fd10455cb4b"],
|
|
1503
|
+
["objc", "27764c4b2f960cf3"],
|
|
1504
|
+
["ocaml", "9566d1d93ca334bf"],
|
|
1505
|
+
["pascal", "e3ba20a3551174e4"],
|
|
1506
|
+
["perl", "56b8de695b8acacf"],
|
|
1507
|
+
["php", "e2f49f0a0b595a16"],
|
|
1508
|
+
["pli", "c1821a23de239675"],
|
|
1509
|
+
["powershell", "a3b02edf7b027c66"],
|
|
1510
|
+
["proto", "a2f887c45f9bf1d2"],
|
|
1511
|
+
["r", "806be2f03be7dd1f"],
|
|
1512
|
+
["racket", "b093081d200e8d68"],
|
|
1513
|
+
["rpg", "4c9668b3c61396e6"],
|
|
1514
|
+
["salesforce_metadata", "03e76181b0045245"],
|
|
1515
|
+
["sas", "bf7c36acb99e0759"],
|
|
1516
|
+
["scala", "f7198d0d39def4ae"],
|
|
1517
|
+
["scheme", "d905c93ab9e766a8"],
|
|
1518
|
+
["solidity", "7766122d1f3c7cbc"],
|
|
1519
|
+
["sql", "824fcaff44f3ed5c"],
|
|
1520
|
+
["swift", "b18ac1ef016d5137"],
|
|
1521
|
+
["terraform", "fac96a1cef8d11e5"],
|
|
1522
|
+
["thrift", "cf18f8d114adfd6f"],
|
|
1523
|
+
["vb", "78c117ff3d925cf1"],
|
|
1524
|
+
["vhdl", "62c11e0fb39472ad"],
|
|
1525
|
+
["zig", "80c5e52bbe1455fb"]
|
|
1523
1526
|
]);
|
|
1524
1527
|
|
|
1525
1528
|
// src/parser_stamp.ts
|
|
@@ -3776,6 +3779,18 @@ function boundSymbolDocstring(docstring) {
|
|
|
3776
3779
|
if (cutsSurrogatePair) end -= 1;
|
|
3777
3780
|
return docstring.slice(0, Math.max(0, end)) + DOCSTRING_TRUNCATION_MARKER;
|
|
3778
3781
|
}
|
|
3782
|
+
var MAX_REF_CONTEXT_CHARS = 2048;
|
|
3783
|
+
var REF_CONTEXT_ELISION = " [\u2026] ";
|
|
3784
|
+
function boundRefContext(context, col) {
|
|
3785
|
+
if (context.length <= MAX_REF_CONTEXT_CHARS) return context;
|
|
3786
|
+
const budget = MAX_REF_CONTEXT_CHARS - REF_CONTEXT_ELISION.length * 2;
|
|
3787
|
+
const centre = Math.min(Math.max(col, 0), context.length);
|
|
3788
|
+
let start = Math.max(0, Math.min(centre - Math.floor(budget / 2), context.length - budget));
|
|
3789
|
+
let end = start + budget;
|
|
3790
|
+
if (start > 0 && context.charCodeAt(start) >= 56320 && context.charCodeAt(start) <= 57343) start += 1;
|
|
3791
|
+
if (end < context.length && context.charCodeAt(end - 1) >= 55296 && context.charCodeAt(end - 1) <= 56319) end -= 1;
|
|
3792
|
+
return (start > 0 ? REF_CONTEXT_ELISION : "") + context.slice(start, end) + (end < context.length ? REF_CONTEXT_ELISION : "");
|
|
3793
|
+
}
|
|
3779
3794
|
function loadGrammar(lang, filePath, content) {
|
|
3780
3795
|
const useTsx = lang === "typescript" && filePath !== void 0 && path6.extname(filePath).toLowerCase() === ".tsx";
|
|
3781
3796
|
const useCppHeader = lang === "c" && filePath !== void 0 && path6.extname(filePath).toLowerCase() === ".h" && content !== void 0 && CPP_HEADER_SNIFF_RE.test(content);
|
|
@@ -3914,7 +3929,7 @@ function parseSourceSymbolsTreeSitterOnly(content, filePath, language) {
|
|
|
3914
3929
|
var REGEX_ADAPTERS_SLOT = /* @__PURE__ */ Symbol.for("token-goat.regex-adapters");
|
|
3915
3930
|
var adapterSlot = globalThis;
|
|
3916
3931
|
async function loadRegexExtractors() {
|
|
3917
|
-
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-
|
|
3932
|
+
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-6AQLZMCO.mjs");
|
|
3918
3933
|
}
|
|
3919
3934
|
function regexAdapters() {
|
|
3920
3935
|
const loaded = adapterSlot[REGEX_ADAPTERS_SLOT];
|
|
@@ -4029,7 +4044,7 @@ function writeParseResult(filePath, content, result, dbPath) {
|
|
|
4029
4044
|
);
|
|
4030
4045
|
for (const r of result.refs) {
|
|
4031
4046
|
if (r.name === "" || COMPILER_ARTIFACT_REF_NAMES.has(r.name)) continue;
|
|
4032
|
-
insRef.run(r.filePath, r.name, r.line, r.col, r.context);
|
|
4047
|
+
insRef.run(r.filePath, r.name, r.line, r.col, boundRefContext(r.context, r.col));
|
|
4033
4048
|
}
|
|
4034
4049
|
});
|
|
4035
4050
|
writeAll.immediate();
|
|
@@ -4816,6 +4831,8 @@ export {
|
|
|
4816
4831
|
deleteFileRows,
|
|
4817
4832
|
isParseSkipEligible,
|
|
4818
4833
|
indexFileSync,
|
|
4834
|
+
assetEmbedSha,
|
|
4835
|
+
maxChunksEmbedSha,
|
|
4819
4836
|
indexedPathSpellingIsStale,
|
|
4820
4837
|
isEmbedFresh,
|
|
4821
4838
|
indexFileEmbeddings,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
stripMultilineStringSpan,
|
|
11
11
|
stripNestedBlockCommentSpan,
|
|
12
12
|
stripStringLiterals
|
|
13
|
-
} from "./token-goat-chunk-
|
|
13
|
+
} from "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
14
14
|
import {
|
|
15
15
|
init_define_import_meta_env
|
|
16
16
|
} from "./token-goat-chunk-A37V4PBF.mjs";
|