token-goat 2.9.24 → 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-D4JAVM3Z.mjs → token-goat-chunk-43JFN26X.mjs} +5 -5
- package/dist/{token-goat-chunk-BJRNKGYK.mjs → token-goat-chunk-4GEDH2WU.mjs} +8 -5
- package/dist/{token-goat-chunk-HC7SSQYK.mjs → token-goat-chunk-5BQ7W7D7.mjs} +16 -16
- package/dist/{token-goat-chunk-MEAYTTPZ.mjs → token-goat-chunk-5M3NRJD2.mjs} +2 -2
- package/dist/{token-goat-chunk-CLMQ24PD.mjs → token-goat-chunk-62IHOU6L.mjs} +2 -2
- package/dist/{token-goat-chunk-CFVXTYRC.mjs → token-goat-chunk-6E2IDLHF.mjs} +1 -1
- package/dist/{token-goat-chunk-3PT5WLQK.mjs → token-goat-chunk-7EPYB34H.mjs} +71 -61
- package/dist/{token-goat-chunk-7ADSYVBK.mjs → token-goat-chunk-7SXPJOSZ.mjs} +1 -1
- package/dist/{token-goat-chunk-2DUAXUIJ.mjs → token-goat-chunk-7Y6GWTII.mjs} +8 -8
- package/dist/token-goat-chunk-ADMR3QVF.mjs +41 -0
- package/dist/{token-goat-chunk-FXK6UNAH.mjs → token-goat-chunk-BAWKGODL.mjs} +1 -1
- package/dist/{token-goat-chunk-QVWZVH7Y.mjs → token-goat-chunk-BH4ZVRB2.mjs} +2 -2
- package/dist/{token-goat-chunk-VG36C3C4.mjs → token-goat-chunk-C2PG4K5D.mjs} +4 -4
- package/dist/{token-goat-chunk-GT26NTEL.mjs → token-goat-chunk-CQHY4SL7.mjs} +3 -3
- package/dist/{token-goat-chunk-I44FCOH2.mjs → token-goat-chunk-CXBOFPF4.mjs} +10 -10
- package/dist/{token-goat-chunk-UIHJZTP4.mjs → token-goat-chunk-D2X7XN5M.mjs} +3 -3
- package/dist/{token-goat-chunk-B7GDKYSS.mjs → token-goat-chunk-E6B2UFDF.mjs} +8 -8
- package/dist/{token-goat-chunk-5S74ZZEO.mjs → token-goat-chunk-FLEYOCAS.mjs} +3 -3
- package/dist/{token-goat-chunk-FMQP3ERO.mjs → token-goat-chunk-G6EYO5CD.mjs} +2 -2
- package/dist/{token-goat-chunk-AS5NSR66.mjs → token-goat-chunk-GKZ2US5B.mjs} +27 -27
- package/dist/{token-goat-chunk-CORDQN2U.mjs → token-goat-chunk-H2CPLEMP.mjs} +6 -6
- package/dist/{token-goat-chunk-HYD56VIE.mjs → token-goat-chunk-IKZLSRII.mjs} +2 -2
- package/dist/{token-goat-chunk-7ZCZ2HPM.mjs → token-goat-chunk-JALB3KWJ.mjs} +26 -19
- package/dist/{token-goat-chunk-JFVBQTYP.mjs → token-goat-chunk-L43RKNHA.mjs} +1 -1
- package/dist/{token-goat-chunk-RR4X4DHY.mjs → token-goat-chunk-L45IWWMC.mjs} +6 -6
- package/dist/{token-goat-chunk-T2RFPPNW.mjs → token-goat-chunk-LHUP4DXZ.mjs} +1 -1
- package/dist/{token-goat-chunk-J3TXSEAO.mjs → token-goat-chunk-LRIZ7K3F.mjs} +1 -1
- package/dist/{token-goat-chunk-SB5PY2N4.mjs → token-goat-chunk-M6CVNHTW.mjs} +4 -4
- package/dist/{token-goat-chunk-72TE7FU7.mjs → token-goat-chunk-MBDJR6HU.mjs} +12 -12
- package/dist/{token-goat-chunk-HZJZRQRF.mjs → token-goat-chunk-MDV5VWF4.mjs} +4 -4
- package/dist/{token-goat-chunk-PKBVHMSV.mjs → token-goat-chunk-MWID3YOY.mjs} +3 -3
- package/dist/{token-goat-chunk-I35H7T6A.mjs → token-goat-chunk-MZTO4FXH.mjs} +10 -10
- package/dist/{token-goat-chunk-4MAEUQLF.mjs → token-goat-chunk-PAV6NNY7.mjs} +3 -3
- package/dist/{token-goat-chunk-XSX4LVA2.mjs → token-goat-chunk-POOI26O6.mjs} +5 -5
- package/dist/{token-goat-chunk-DNHYOVUK.mjs → token-goat-chunk-RH27ZSPF.mjs} +11 -11
- package/dist/{token-goat-chunk-YVPIXBSD.mjs → token-goat-chunk-RIB6XY2V.mjs} +1 -1
- package/dist/{token-goat-chunk-U47EDUXC.mjs → token-goat-chunk-STYRLQIW.mjs} +2 -2
- package/dist/{token-goat-chunk-Q4RV2RNK.mjs → token-goat-chunk-TG5ZPD6B.mjs} +30 -30
- package/dist/{token-goat-chunk-LN6CBNPK.mjs → token-goat-chunk-VVROQBQJ.mjs} +3 -3
- package/dist/{token-goat-chunk-EGYUJ2AP.mjs → token-goat-chunk-WNBSCSAI.mjs} +1 -1
- package/dist/{token-goat-chunk-MGJPPLPE.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-ZK52PPYH.mjs +0 -41
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
classifyContent,
|
|
5
5
|
guardDivisor,
|
|
6
6
|
stripAnsiEscapes
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
8
8
|
import {
|
|
9
9
|
safeSlice
|
|
10
|
-
} from "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
displaySafeText
|
|
13
13
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -70,43 +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-
|
|
77
|
-
import "./token-goat-chunk-
|
|
78
|
-
import "./token-goat-chunk-
|
|
73
|
+
} from "./token-goat-chunk-TG5ZPD6B.mjs";
|
|
74
|
+
import "./token-goat-chunk-BH4ZVRB2.mjs";
|
|
75
|
+
import "./token-goat-chunk-PAV6NNY7.mjs";
|
|
76
|
+
import "./token-goat-chunk-L45IWWMC.mjs";
|
|
77
|
+
import "./token-goat-chunk-RH27ZSPF.mjs";
|
|
78
|
+
import "./token-goat-chunk-5M3NRJD2.mjs";
|
|
79
79
|
import "./token-goat-chunk-DA43OE7L.mjs";
|
|
80
80
|
import {
|
|
81
81
|
cmdDescribe,
|
|
82
82
|
cmdSessionSchema
|
|
83
|
-
} from "./token-goat-chunk-
|
|
84
|
-
import "./token-goat-chunk-
|
|
85
|
-
import "./token-goat-chunk-
|
|
86
|
-
import "./token-goat-chunk-
|
|
87
|
-
import "./token-goat-chunk-
|
|
88
|
-
import "./token-goat-chunk-
|
|
89
|
-
import "./token-goat-chunk-
|
|
90
|
-
import "./token-goat-chunk-
|
|
91
|
-
import "./token-goat-chunk-
|
|
92
|
-
import "./token-goat-chunk-
|
|
83
|
+
} from "./token-goat-chunk-7Y6GWTII.mjs";
|
|
84
|
+
import "./token-goat-chunk-62IHOU6L.mjs";
|
|
85
|
+
import "./token-goat-chunk-MDV5VWF4.mjs";
|
|
86
|
+
import "./token-goat-chunk-MBDJR6HU.mjs";
|
|
87
|
+
import "./token-goat-chunk-4GEDH2WU.mjs";
|
|
88
|
+
import "./token-goat-chunk-VVROQBQJ.mjs";
|
|
89
|
+
import "./token-goat-chunk-M6CVNHTW.mjs";
|
|
90
|
+
import "./token-goat-chunk-G6EYO5CD.mjs";
|
|
91
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
92
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
93
93
|
import "./token-goat-chunk-LKSXAMJB.mjs";
|
|
94
|
-
import "./token-goat-chunk-
|
|
95
|
-
import "./token-goat-chunk-
|
|
96
|
-
import "./token-goat-chunk-
|
|
97
|
-
import "./token-goat-chunk-
|
|
94
|
+
import "./token-goat-chunk-WNBSCSAI.mjs";
|
|
95
|
+
import "./token-goat-chunk-BAWKGODL.mjs";
|
|
96
|
+
import "./token-goat-chunk-STYRLQIW.mjs";
|
|
97
|
+
import "./token-goat-chunk-L43RKNHA.mjs";
|
|
98
98
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
99
|
-
import "./token-goat-chunk-
|
|
99
|
+
import "./token-goat-chunk-RIB6XY2V.mjs";
|
|
100
100
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
101
101
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
102
|
-
import "./token-goat-chunk-
|
|
103
|
-
import "./token-goat-chunk-
|
|
104
|
-
import "./token-goat-chunk-
|
|
105
|
-
import "./token-goat-chunk-
|
|
106
|
-
import "./token-goat-chunk-
|
|
102
|
+
import "./token-goat-chunk-LHUP4DXZ.mjs";
|
|
103
|
+
import "./token-goat-chunk-7EPYB34H.mjs";
|
|
104
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
105
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
106
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
107
107
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
108
108
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
109
|
-
import "./token-goat-chunk-
|
|
109
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
110
110
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
111
111
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
112
112
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
extractSwift,
|
|
26
26
|
extractThrift,
|
|
27
27
|
extractWgsl
|
|
28
|
-
} from "./token-goat-chunk-
|
|
28
|
+
} from "./token-goat-chunk-LHUP4DXZ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
extractShellBannerHeading
|
|
31
|
-
} from "./token-goat-chunk-
|
|
32
|
-
import "./token-goat-chunk-
|
|
31
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
32
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
33
33
|
import {
|
|
34
34
|
GENERIC_CLAUSE,
|
|
35
35
|
assignBraceBlockSpans,
|
|
@@ -59,15 +59,15 @@ import {
|
|
|
59
59
|
stripMultilineStringSpan,
|
|
60
60
|
stripStringLiterals,
|
|
61
61
|
stripXmlComments
|
|
62
|
-
} from "./token-goat-chunk-
|
|
63
|
-
import "./token-goat-chunk-
|
|
62
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
63
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
64
64
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
65
65
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
66
66
|
import {
|
|
67
67
|
countContentLines,
|
|
68
68
|
escapeRegExp,
|
|
69
69
|
pushAll
|
|
70
|
-
} from "./token-goat-chunk-
|
|
70
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
71
71
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
72
72
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
73
73
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getDb
|
|
5
|
-
} from "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
foldPath,
|
|
8
8
|
globalDbPath,
|
|
9
9
|
isCaseInsensitiveFs
|
|
10
|
-
} from "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
normalizePath
|
|
13
13
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -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";
|