token-goat 2.9.25 → 2.9.26
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/{token-goat-chunk-BIBZQRC6.mjs → token-goat-chunk-43JFN26X.mjs} +5 -5
- package/dist/{token-goat-chunk-G7YWBH25.mjs → token-goat-chunk-4GEDH2WU.mjs} +8 -5
- package/dist/{token-goat-chunk-T6652D3F.mjs → token-goat-chunk-5BQ7W7D7.mjs} +16 -16
- package/dist/{token-goat-chunk-6W2FFT6H.mjs → token-goat-chunk-5M3NRJD2.mjs} +2 -2
- package/dist/{token-goat-chunk-UGCNTVF4.mjs → token-goat-chunk-62IHOU6L.mjs} +2 -2
- package/dist/{token-goat-chunk-YE4TGC4Z.mjs → token-goat-chunk-6E2IDLHF.mjs} +1 -1
- package/dist/{token-goat-chunk-7PQYG6TN.mjs → token-goat-chunk-7EPYB34H.mjs} +8 -8
- package/dist/{token-goat-chunk-3FSAZR32.mjs → token-goat-chunk-7SXPJOSZ.mjs} +1 -1
- package/dist/{token-goat-chunk-2SSDSUSF.mjs → token-goat-chunk-7Y6GWTII.mjs} +8 -8
- package/dist/token-goat-chunk-ADMR3QVF.mjs +41 -0
- package/dist/{token-goat-chunk-OUQIGPW3.mjs → token-goat-chunk-BAWKGODL.mjs} +1 -1
- package/dist/{token-goat-chunk-EZVRN44Y.mjs → token-goat-chunk-BH4ZVRB2.mjs} +2 -2
- package/dist/{token-goat-chunk-J2PRBQ24.mjs → token-goat-chunk-C2PG4K5D.mjs} +4 -4
- package/dist/{token-goat-chunk-ORO4GOMA.mjs → token-goat-chunk-CQHY4SL7.mjs} +3 -3
- package/dist/{token-goat-chunk-25NRXKIW.mjs → token-goat-chunk-CXBOFPF4.mjs} +10 -10
- package/dist/{token-goat-chunk-KOL5WXDW.mjs → token-goat-chunk-D2X7XN5M.mjs} +3 -3
- package/dist/{token-goat-chunk-KYV7E6ZJ.mjs → token-goat-chunk-E6B2UFDF.mjs} +8 -8
- package/dist/{token-goat-chunk-MBRX5AP6.mjs → token-goat-chunk-FLEYOCAS.mjs} +3 -3
- package/dist/{token-goat-chunk-QZZPWFVF.mjs → token-goat-chunk-G6EYO5CD.mjs} +2 -2
- package/dist/{token-goat-chunk-KMCVX3P2.mjs → token-goat-chunk-GKZ2US5B.mjs} +27 -27
- package/dist/{token-goat-chunk-ZWFP4ZU7.mjs → token-goat-chunk-H2CPLEMP.mjs} +6 -6
- package/dist/{token-goat-chunk-YZ67F2HJ.mjs → token-goat-chunk-IKZLSRII.mjs} +2 -2
- package/dist/{token-goat-chunk-NNXCBELZ.mjs → token-goat-chunk-JALB3KWJ.mjs} +26 -19
- package/dist/{token-goat-chunk-BQ6ZDLTF.mjs → token-goat-chunk-L43RKNHA.mjs} +1 -1
- package/dist/{token-goat-chunk-K4TNHLGS.mjs → token-goat-chunk-L45IWWMC.mjs} +6 -6
- package/dist/{token-goat-chunk-ILROZWXE.mjs → token-goat-chunk-LHUP4DXZ.mjs} +1 -1
- package/dist/{token-goat-chunk-UTKNLKYE.mjs → token-goat-chunk-LRIZ7K3F.mjs} +1 -1
- package/dist/{token-goat-chunk-VAIJUZG6.mjs → token-goat-chunk-M6CVNHTW.mjs} +4 -4
- package/dist/{token-goat-chunk-TWVFMUTZ.mjs → token-goat-chunk-MBDJR6HU.mjs} +12 -12
- package/dist/{token-goat-chunk-IEF2NZFZ.mjs → token-goat-chunk-MDV5VWF4.mjs} +4 -4
- package/dist/{token-goat-chunk-EX2DVKAT.mjs → token-goat-chunk-MWID3YOY.mjs} +3 -3
- package/dist/{token-goat-chunk-EDCVQLBR.mjs → token-goat-chunk-MZTO4FXH.mjs} +10 -10
- package/dist/{token-goat-chunk-UEQUZDHQ.mjs → token-goat-chunk-PAV6NNY7.mjs} +3 -3
- package/dist/{token-goat-chunk-PPNKB5HP.mjs → token-goat-chunk-POOI26O6.mjs} +5 -5
- package/dist/{token-goat-chunk-Y463KPAQ.mjs → token-goat-chunk-RH27ZSPF.mjs} +11 -11
- package/dist/{token-goat-chunk-II5WBDFB.mjs → token-goat-chunk-RIB6XY2V.mjs} +1 -1
- package/dist/{token-goat-chunk-RLDBVMXR.mjs → token-goat-chunk-STYRLQIW.mjs} +2 -2
- package/dist/{token-goat-chunk-Z5ZTBSHL.mjs → token-goat-chunk-TG5ZPD6B.mjs} +30 -30
- package/dist/{token-goat-chunk-OHMKCBZI.mjs → token-goat-chunk-VVROQBQJ.mjs} +3 -3
- package/dist/{token-goat-chunk-ZDFDCXU2.mjs → token-goat-chunk-WNBSCSAI.mjs} +1 -1
- package/dist/{token-goat-chunk-TVTDINTO.mjs → token-goat-chunk-ZZT6PVB3.mjs} +4 -4
- package/dist/token-goat-hook.mjs +17 -17
- package/dist/token-goat.core.mjs +27 -27
- package/package.json +1 -1
- package/dist/token-goat-chunk-WEYODFTA.mjs +0 -41
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
canRunWrappedShell,
|
|
6
6
|
clipToDeliveryCap,
|
|
7
7
|
deliveredOutputBytes
|
|
8
|
-
} from "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-ZZT6PVB3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_RECONCILE_BUDGET_MS,
|
|
11
11
|
HOOK_EVENTS,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
readStdinJson,
|
|
21
21
|
reconcileProject,
|
|
22
22
|
storeWebOutput
|
|
23
|
-
} from "./token-goat-chunk-
|
|
23
|
+
} from "./token-goat-chunk-7Y6GWTII.mjs";
|
|
24
24
|
import {
|
|
25
25
|
projectTranscriptsDir
|
|
26
|
-
} from "./token-goat-chunk-
|
|
26
|
+
} from "./token-goat-chunk-62IHOU6L.mjs";
|
|
27
27
|
import {
|
|
28
28
|
BUDGET_ESCALATION_MARKER,
|
|
29
29
|
MANIFEST_PREAMBLE,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
buildManifest,
|
|
32
32
|
manifestPrintedPaths,
|
|
33
33
|
summaryBudgetDirective
|
|
34
|
-
} from "./token-goat-chunk-
|
|
34
|
+
} from "./token-goat-chunk-MDV5VWF4.mjs";
|
|
35
35
|
import {
|
|
36
36
|
BODY_FIRST_TOOL_RESPONSE_KEYS,
|
|
37
37
|
OUTLINE_MAX_REPLACEMENT_RATIO,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
visionTokensSaved,
|
|
100
100
|
vscodePathAllowed,
|
|
101
101
|
withPreservedBlocks
|
|
102
|
-
} from "./token-goat-chunk-
|
|
102
|
+
} from "./token-goat-chunk-MBDJR6HU.mjs";
|
|
103
103
|
import {
|
|
104
104
|
compressOutput,
|
|
105
105
|
detectFromCommand,
|
|
@@ -108,10 +108,10 @@ import {
|
|
|
108
108
|
looksLikePytestOutput,
|
|
109
109
|
pytestFilter,
|
|
110
110
|
resolveMinNetSavingsBytes
|
|
111
|
-
} from "./token-goat-chunk-
|
|
111
|
+
} from "./token-goat-chunk-4GEDH2WU.mjs";
|
|
112
112
|
import {
|
|
113
113
|
readCopilotHooksOwners
|
|
114
|
-
} from "./token-goat-chunk-
|
|
114
|
+
} from "./token-goat-chunk-VVROQBQJ.mjs";
|
|
115
115
|
import {
|
|
116
116
|
GENERIC_SERVED_OUTPUT_KEY,
|
|
117
117
|
clearCurlDownload,
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
wasCliReadThisSession,
|
|
160
160
|
wasFileReadThisSession,
|
|
161
161
|
wasHintShown
|
|
162
|
-
} from "./token-goat-chunk-
|
|
162
|
+
} from "./token-goat-chunk-M6CVNHTW.mjs";
|
|
163
163
|
import {
|
|
164
164
|
accumulateResidentLines,
|
|
165
165
|
claudeConfigDir,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
repeatedSkillBodyHint,
|
|
170
170
|
summarizeResidentContext,
|
|
171
171
|
taskListPruneHint
|
|
172
|
-
} from "./token-goat-chunk-
|
|
172
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
173
173
|
import {
|
|
174
174
|
BASH_OUTPUT_SUBDIR,
|
|
175
175
|
bashOutputIdSync,
|
|
@@ -190,30 +190,30 @@ import {
|
|
|
190
190
|
splitOwnTrailingNotices,
|
|
191
191
|
storeBashOutput,
|
|
192
192
|
summarizeOutputDelta
|
|
193
|
-
} from "./token-goat-chunk-
|
|
193
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
194
194
|
import {
|
|
195
195
|
recordStat,
|
|
196
196
|
redactSecrets,
|
|
197
197
|
savedTokensFromBytes,
|
|
198
198
|
storeBlob,
|
|
199
199
|
stripAnsiEscapes
|
|
200
|
-
} from "./token-goat-chunk-
|
|
200
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
201
201
|
import {
|
|
202
202
|
extractMarkdownHeadings,
|
|
203
203
|
formatHeadingTreeParts
|
|
204
|
-
} from "./token-goat-chunk-
|
|
204
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
205
205
|
import {
|
|
206
206
|
countSymbols,
|
|
207
207
|
getFileEntry,
|
|
208
208
|
querySymbols
|
|
209
|
-
} from "./token-goat-chunk-
|
|
209
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
210
210
|
import {
|
|
211
211
|
buildLineIndex,
|
|
212
212
|
detectLanguage,
|
|
213
213
|
getDb,
|
|
214
214
|
languageHasFlag,
|
|
215
215
|
offsetToLine
|
|
216
|
-
} from "./token-goat-chunk-
|
|
216
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
217
217
|
import {
|
|
218
218
|
detectHarness,
|
|
219
219
|
envBool,
|
|
@@ -224,7 +224,7 @@ import {
|
|
|
224
224
|
isUnderSystemTemp,
|
|
225
225
|
loadConfig,
|
|
226
226
|
shortFingerprint
|
|
227
|
-
} from "./token-goat-chunk-
|
|
227
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
228
228
|
import {
|
|
229
229
|
ENV_KEYS,
|
|
230
230
|
IDENTICAL_READ_MIN_BODY_BYTES,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
isInsideRoot,
|
|
245
245
|
runGit,
|
|
246
246
|
toKB
|
|
247
|
-
} from "./token-goat-chunk-
|
|
247
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
248
248
|
import {
|
|
249
249
|
TOOL_RESULTS_ID_CHARS,
|
|
250
250
|
UNTRUSTED_TOOL_TAG,
|
|
@@ -868,7 +868,7 @@ init_define_import_meta_env();
|
|
|
868
868
|
var TRACKED_SKILL = "token-goat";
|
|
869
869
|
var MAX_COMMANDS_SHOWN = 8;
|
|
870
870
|
async function currentCommandNames() {
|
|
871
|
-
const { buildProgram } = await import("./token-goat-chunk-
|
|
871
|
+
const { buildProgram } = await import("./token-goat-chunk-GKZ2US5B.mjs");
|
|
872
872
|
return flattenCommandNames(buildCommandManifest(buildProgram()));
|
|
873
873
|
}
|
|
874
874
|
async function recordSkillVersionSnapshot(sessionId, skillName) {
|
|
@@ -1139,7 +1139,7 @@ async function postCompactRecovery(event) {
|
|
|
1139
1139
|
if (event.raw["source"] !== "compact" || event.sessionId === void 0) return null;
|
|
1140
1140
|
if (!loadConfig().compact_assist.enabled) return null;
|
|
1141
1141
|
try {
|
|
1142
|
-
const { buildResumePacket } = await import("./token-goat-chunk-
|
|
1142
|
+
const { buildResumePacket } = await import("./token-goat-chunk-MZTO4FXH.mjs");
|
|
1143
1143
|
return await buildResumePacket(event.sessionId);
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
return null;
|
|
@@ -7799,6 +7799,11 @@ function extractCatFilesMulti(cmd) {
|
|
|
7799
7799
|
var POWERSHELL_WRAP_RE = /^(?:powershell|pwsh)(?:\.exe)?(?:\s+-[a-zA-Z]+(?:\s+\S+)?)*\s+(?:-Command|-c|-EncodedCommand)\s+(?:"([^"]*)"|'([^']*)')\s*$/i;
|
|
7800
7800
|
var PS_GETCONTENT_INNER_RE = /^(?:Get-Content|gc|cat|type)(?:\s+(?:-[a-zA-Z]+|--[a-zA-Z-]+))*\s+(?:"([^"]+)"|'([^']+)'|(\S+?))(?:\s+-[a-zA-Z].*)?\s*$/i;
|
|
7801
7801
|
var PS_FILE_METHOD_RE = /\[(?:System\.)?IO\.File\]::(?:ReadAllText|ReadAllLines|ReadAllBytes|ReadLines|OpenText)\(\s*['"]([^'"]+)['"]/i;
|
|
7802
|
+
function writesBackSamePath(cmd, filePath, methods) {
|
|
7803
|
+
return new RegExp(`(?:${methods})\\(\\s*['"]${escapeRegExp(filePath)}['"]`, "i").test(cmd);
|
|
7804
|
+
}
|
|
7805
|
+
var NODE_WRITE_METHODS = "writeFileSync|appendFileSync";
|
|
7806
|
+
var PS_WRITE_METHODS = "WriteAllText|WriteAllLines|WriteAllBytes|AppendAllText|AppendAllLines";
|
|
7802
7807
|
var PS_TEMP_READ_FLOOD_BYTES = 16 * 1024;
|
|
7803
7808
|
function isLargeFileOnDisk(filePath, floor) {
|
|
7804
7809
|
try {
|
|
@@ -7839,6 +7844,7 @@ function extractPowerShellFileMethodRead(cmd, event) {
|
|
|
7839
7844
|
if (!m?.[1]) return null;
|
|
7840
7845
|
const filePath = m[1];
|
|
7841
7846
|
if (isOrchestratorStateFile(filePath)) return null;
|
|
7847
|
+
if (writesBackSamePath(inner, filePath, PS_WRITE_METHODS)) return null;
|
|
7842
7848
|
if (isTempPath(filePath)) {
|
|
7843
7849
|
if (!commandPathIsTouchable(filePath, event)) return null;
|
|
7844
7850
|
if (!isLargeFileOnDisk(filePath, PS_TEMP_READ_FLOOD_BYTES)) return null;
|
|
@@ -8282,7 +8288,7 @@ function extractNodeFileRead(cmd) {
|
|
|
8282
8288
|
const filePath = readSync2[1];
|
|
8283
8289
|
if (isOrchestratorStateFile(filePath)) return null;
|
|
8284
8290
|
if (isTempPath(filePath)) return null;
|
|
8285
|
-
if (
|
|
8291
|
+
if (writesBackSamePath(cmd, filePath, NODE_WRITE_METHODS)) return null;
|
|
8286
8292
|
const { isDoc, isConfig, isSql } = classifyDocConfig(filePath);
|
|
8287
8293
|
return { filePath, isDoc, isConfig, isSql };
|
|
8288
8294
|
}
|
|
@@ -8292,6 +8298,7 @@ function extractNodeFileRead(cmd) {
|
|
|
8292
8298
|
if (filePath.includes("node_modules")) return null;
|
|
8293
8299
|
if (isOrchestratorStateFile(filePath)) return null;
|
|
8294
8300
|
if (isTempPath(filePath)) return null;
|
|
8301
|
+
if (writesBackSamePath(cmd, filePath, NODE_WRITE_METHODS)) return null;
|
|
8295
8302
|
return { filePath, isDoc: false, isConfig: true, isSql: false };
|
|
8296
8303
|
}
|
|
8297
8304
|
return null;
|
|
@@ -2,26 +2,26 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
renderWebFetchRow
|
|
5
|
-
} from "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-MDV5VWF4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SESSIONS_SUBDIR,
|
|
8
8
|
extractChecklistSection,
|
|
9
9
|
getSkillFilePath,
|
|
10
10
|
listSkills
|
|
11
|
-
} from "./token-goat-chunk-
|
|
11
|
+
} from "./token-goat-chunk-M6CVNHTW.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getBashOutput
|
|
14
|
-
} from "./token-goat-chunk-
|
|
14
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
15
15
|
import {
|
|
16
16
|
loadBlob
|
|
17
|
-
} from "./token-goat-chunk-
|
|
17
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
18
18
|
import {
|
|
19
19
|
resolveProjectRoot
|
|
20
|
-
} from "./token-goat-chunk-
|
|
20
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
21
21
|
import {
|
|
22
22
|
runGit,
|
|
23
23
|
safeSlice
|
|
24
|
-
} from "./token-goat-chunk-
|
|
24
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
25
25
|
import {
|
|
26
26
|
displaySafePath,
|
|
27
27
|
displaySafeText,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
stripMultilineStringSpan,
|
|
11
11
|
stripNestedBlockCommentSpan,
|
|
12
12
|
stripStringLiterals
|
|
13
|
-
} from "./token-goat-chunk-
|
|
13
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
init_define_import_meta_env
|
|
16
16
|
} from "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -3,19 +3,19 @@ const require = __cjsRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
claudeConfigDir,
|
|
5
5
|
readTranscriptTail
|
|
6
|
-
} from "./token-goat-chunk-
|
|
6
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_AGE_MS,
|
|
9
9
|
DEFAULT_MAX_COUNT,
|
|
10
10
|
recordStat,
|
|
11
11
|
redactSecrets
|
|
12
|
-
} from "./token-goat-chunk-
|
|
12
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
13
13
|
import {
|
|
14
14
|
detectHarness,
|
|
15
15
|
isAutoTriggerMultiplierExplicit,
|
|
16
16
|
loadConfig,
|
|
17
17
|
shortFingerprint
|
|
18
|
-
} from "./token-goat-chunk-
|
|
18
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
19
19
|
import {
|
|
20
20
|
registerReset
|
|
21
21
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
stripLower,
|
|
32
32
|
tokenGoatHome,
|
|
33
33
|
withFileLock
|
|
34
|
-
} from "./token-goat-chunk-
|
|
34
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
35
35
|
import {
|
|
36
36
|
normalizePath
|
|
37
37
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -3,12 +3,12 @@ const require = __cjsRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isRewriteWorthwhile,
|
|
5
5
|
resolveMinNetSavingsBytes
|
|
6
|
-
} from "./token-goat-chunk-
|
|
6
|
+
} from "./token-goat-chunk-4GEDH2WU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
COPILOT_CLI_TOOL_NAME_MAP,
|
|
9
9
|
foldToolName,
|
|
10
10
|
readCopilotMcpTools
|
|
11
|
-
} from "./token-goat-chunk-
|
|
11
|
+
} from "./token-goat-chunk-VVROQBQJ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
contentHash,
|
|
14
14
|
exportSessionState,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
wasFileReadThisSession,
|
|
37
37
|
wasFileTruncatedThisSession,
|
|
38
38
|
writeSessionManifest
|
|
39
|
-
} from "./token-goat-chunk-
|
|
39
|
+
} from "./token-goat-chunk-M6CVNHTW.mjs";
|
|
40
40
|
import {
|
|
41
41
|
claudeConfigDir,
|
|
42
42
|
estimateTokens
|
|
43
|
-
} from "./token-goat-chunk-
|
|
43
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
44
44
|
import {
|
|
45
45
|
getBashOutput,
|
|
46
46
|
isGeneratedFile,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
isLockFile,
|
|
49
49
|
isManifestFile,
|
|
50
50
|
storeBashOutputSync
|
|
51
|
-
} from "./token-goat-chunk-
|
|
51
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
52
52
|
import {
|
|
53
53
|
DEFAULT_MAX_AGE_MS,
|
|
54
54
|
SOURCE_HINT,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
savedTokensFromBytes,
|
|
61
61
|
summarize,
|
|
62
62
|
sweepCacheRoots
|
|
63
|
-
} from "./token-goat-chunk-
|
|
63
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
64
64
|
import {
|
|
65
65
|
parse
|
|
66
66
|
} from "./token-goat-chunk-3BTK54F3.mjs";
|
|
@@ -94,13 +94,13 @@ import {
|
|
|
94
94
|
maxChunksEmbedSha,
|
|
95
95
|
parseSourceSymbolsTreeSitterOnly,
|
|
96
96
|
parserFingerprintForLanguage
|
|
97
|
-
} from "./token-goat-chunk-
|
|
97
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
98
98
|
import {
|
|
99
99
|
getFileEntry,
|
|
100
100
|
pathEqClause,
|
|
101
101
|
projectScopeClause,
|
|
102
102
|
querySymbols
|
|
103
|
-
} from "./token-goat-chunk-
|
|
103
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
104
104
|
import {
|
|
105
105
|
detectLanguage,
|
|
106
106
|
detectLanguageOfFile,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
getDb,
|
|
109
109
|
languageHasFlag,
|
|
110
110
|
redactIfDotenv
|
|
111
|
-
} from "./token-goat-chunk-
|
|
111
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
112
112
|
import {
|
|
113
113
|
detectHarness,
|
|
114
114
|
fileIsAbsent,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
ownGet,
|
|
123
123
|
resolveProjectRoot,
|
|
124
124
|
shortFingerprint
|
|
125
|
-
} from "./token-goat-chunk-
|
|
125
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
126
126
|
import {
|
|
127
127
|
registerReset
|
|
128
128
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
statSize,
|
|
153
153
|
toKB,
|
|
154
154
|
tokenGoatHome
|
|
155
|
-
} from "./token-goat-chunk-
|
|
155
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
156
156
|
import {
|
|
157
157
|
TOOL_RESULTS_ID_CHARS,
|
|
158
158
|
displaySafeJson,
|
|
@@ -1354,7 +1354,7 @@ ${dataUrl2}`);
|
|
|
1354
1354
|
}
|
|
1355
1355
|
recordStat("image_shrink", shrinkSaved, shrinkTokens, void 0, basename10);
|
|
1356
1356
|
if (loadConfig().image_shrink.ocr_enabled) {
|
|
1357
|
-
const { ocrImage, isTextHeavy, formatOcrSummary } = await import("./token-goat-chunk-
|
|
1357
|
+
const { ocrImage, isTextHeavy, formatOcrSummary } = await import("./token-goat-chunk-POOI26O6.mjs");
|
|
1358
1358
|
const ocr = await ocrImage(result.data);
|
|
1359
1359
|
if (ocr !== null && isTextHeavy(ocr, loadConfig().image_shrink.ocr_min_confidence)) {
|
|
1360
1360
|
const emitted = formatOcrSummary(ocr, basename10, result.originalBytes);
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
isNoisePath,
|
|
12
12
|
listSiblingSessionStates,
|
|
13
13
|
loadSessionCache
|
|
14
|
-
} from "./token-goat-chunk-
|
|
14
|
+
} from "./token-goat-chunk-M6CVNHTW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getBashOutput
|
|
17
|
-
} from "./token-goat-chunk-
|
|
17
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
18
18
|
import {
|
|
19
19
|
loadConfig
|
|
20
|
-
} from "./token-goat-chunk-
|
|
20
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
21
21
|
import {
|
|
22
22
|
foldPath,
|
|
23
23
|
runGit,
|
|
24
24
|
toKB
|
|
25
|
-
} from "./token-goat-chunk-
|
|
25
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
26
26
|
import {
|
|
27
27
|
displaySafePath,
|
|
28
28
|
displaySafeText,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
docxTables,
|
|
6
6
|
docxText,
|
|
7
7
|
formatDocxTables
|
|
8
|
-
} from "./token-goat-chunk-
|
|
9
|
-
import "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-WNBSCSAI.mjs";
|
|
9
|
+
import "./token-goat-chunk-RIB6XY2V.mjs";
|
|
10
10
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
11
11
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
12
|
-
import "./token-goat-chunk-
|
|
12
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
13
13
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
14
14
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
15
15
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
MAX_RESUME_CHARS,
|
|
5
5
|
MAX_RESUME_TOKENS,
|
|
6
6
|
buildResumePacket
|
|
7
|
-
} from "./token-goat-chunk-
|
|
8
|
-
import "./token-goat-chunk-
|
|
9
|
-
import "./token-goat-chunk-
|
|
10
|
-
import "./token-goat-chunk-
|
|
11
|
-
import "./token-goat-chunk-
|
|
12
|
-
import "./token-goat-chunk-
|
|
13
|
-
import "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
15
|
-
import "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-L45IWWMC.mjs";
|
|
8
|
+
import "./token-goat-chunk-MDV5VWF4.mjs";
|
|
9
|
+
import "./token-goat-chunk-M6CVNHTW.mjs";
|
|
10
|
+
import "./token-goat-chunk-G6EYO5CD.mjs";
|
|
11
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
12
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
13
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
14
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
15
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
16
16
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
17
17
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
18
|
-
import "./token-goat-chunk-
|
|
18
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
19
19
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
20
20
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
21
21
|
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -3,14 +3,14 @@ const require = __cjsRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
findLatestTranscript,
|
|
5
5
|
readFileLines
|
|
6
|
-
} from "./token-goat-chunk-
|
|
6
|
+
} from "./token-goat-chunk-62IHOU6L.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotCliUserRoot,
|
|
9
9
|
readCopilotMcpTools
|
|
10
|
-
} from "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-VVROQBQJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
canonicalize
|
|
13
|
-
} from "./token-goat-chunk-
|
|
13
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
init_define_import_meta_env
|
|
16
16
|
} from "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
setOcrTimeoutForTesting,
|
|
21
21
|
setTesseractEntryForTesting,
|
|
22
22
|
verifyOcrLangCache
|
|
23
|
-
} from "./token-goat-chunk-
|
|
24
|
-
import "./token-goat-chunk-
|
|
25
|
-
import "./token-goat-chunk-
|
|
23
|
+
} from "./token-goat-chunk-5M3NRJD2.mjs";
|
|
24
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
25
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_OCR_LANG,
|
|
28
28
|
isSupportedOcrLang,
|
|
29
29
|
resolveOcrLangs
|
|
30
|
-
} from "./token-goat-chunk-
|
|
30
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
31
31
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
32
32
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
33
|
-
import "./token-goat-chunk-
|
|
33
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
34
34
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
35
35
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
36
36
|
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isTextHeavy,
|
|
6
6
|
ocrImage,
|
|
7
7
|
ocrIntegrityFailed
|
|
8
|
-
} from "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-5M3NRJD2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
formatSqliteQueryTable,
|
|
11
11
|
formatSqliteSchema,
|
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
urlPolicyDenialReason,
|
|
43
43
|
virtualIndexedScopeNote,
|
|
44
44
|
walkProject
|
|
45
|
-
} from "./token-goat-chunk-
|
|
45
|
+
} from "./token-goat-chunk-MBDJR6HU.mjs";
|
|
46
46
|
import {
|
|
47
47
|
capJsonRows,
|
|
48
48
|
estimateTokens,
|
|
49
49
|
trimToBudget
|
|
50
|
-
} from "./token-goat-chunk-
|
|
50
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
51
51
|
import {
|
|
52
52
|
BYTES_PER_TOKEN,
|
|
53
53
|
colorStdout,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
savedTokensFromBytes,
|
|
59
59
|
storeBlob,
|
|
60
60
|
stripAnsiEscapes
|
|
61
|
-
} from "./token-goat-chunk-
|
|
61
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
62
62
|
import {
|
|
63
63
|
extractPdfMeta,
|
|
64
64
|
extractPdfOutline,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
parseWhereSpecs,
|
|
73
73
|
profileCsv,
|
|
74
74
|
queryCsv
|
|
75
|
-
} from "./token-goat-chunk-
|
|
75
|
+
} from "./token-goat-chunk-L43RKNHA.mjs";
|
|
76
76
|
import {
|
|
77
77
|
MAX_ZIP_INPUT_BYTES,
|
|
78
78
|
MAX_ZIP_OUTPUT_BYTES,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
extractSolidity,
|
|
108
108
|
extractThrift,
|
|
109
109
|
stripLeadingAttributes
|
|
110
|
-
} from "./token-goat-chunk-
|
|
110
|
+
} from "./token-goat-chunk-LHUP4DXZ.mjs";
|
|
111
111
|
import {
|
|
112
112
|
MAX_OVER_FETCH,
|
|
113
113
|
OVER_FETCH_FACTOR,
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
mergeNearbyHits,
|
|
122
122
|
readSection,
|
|
123
123
|
searchSemantic
|
|
124
|
-
} from "./token-goat-chunk-
|
|
124
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
125
125
|
import {
|
|
126
126
|
DEFAULT_QUERY_LIMIT,
|
|
127
127
|
countRefs,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
queryRefsByContext,
|
|
135
135
|
querySymbols,
|
|
136
136
|
searchSymbolsFts
|
|
137
|
-
} from "./token-goat-chunk-
|
|
137
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
138
138
|
import {
|
|
139
139
|
FILENAME_LANGUAGE,
|
|
140
140
|
TREE_SITTER_LANGUAGES,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
partialRefsReason,
|
|
154
154
|
redactIfDotenv,
|
|
155
155
|
unsupportedLanguageName
|
|
156
|
-
} from "./token-goat-chunk-
|
|
156
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
157
157
|
import {
|
|
158
158
|
fileIsAbsent,
|
|
159
159
|
findProject,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
loadConfig,
|
|
164
164
|
resolveProjectRoot,
|
|
165
165
|
shortFingerprint
|
|
166
|
-
} from "./token-goat-chunk-
|
|
166
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
167
167
|
import {
|
|
168
168
|
registerReset
|
|
169
169
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
supportRequestLine,
|
|
197
197
|
windowsCmdQuoteArg,
|
|
198
198
|
withExtension
|
|
199
|
-
} from "./token-goat-chunk-
|
|
199
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
200
200
|
import {
|
|
201
201
|
UNTRUSTED_FILE_TAG,
|
|
202
202
|
UNTRUSTED_GITHUB_TAG,
|
|
@@ -3,7 +3,7 @@ const require = __cjsRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
queryCsv,
|
|
5
5
|
quoteCsvCell
|
|
6
|
-
} from "./token-goat-chunk-
|
|
6
|
+
} from "./token-goat-chunk-L43RKNHA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
NotAnOfficeDocumentError,
|
|
9
9
|
assertOoxmlWithinDeadline,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ooxmlWorkDeadline,
|
|
13
13
|
parseOoxmlPart,
|
|
14
14
|
readOoxmlZip
|
|
15
|
-
} from "./token-goat-chunk-
|
|
15
|
+
} from "./token-goat-chunk-RIB6XY2V.mjs";
|
|
16
16
|
import {
|
|
17
17
|
displaySafeText
|
|
18
18
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|