token-goat 2.6.32 → 2.6.33
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 +20 -1
- package/dist/{token-goat-chunk-W3MX4LQV.mjs → token-goat-chunk-72R7M5H7.mjs} +6 -9
- package/dist/{token-goat-chunk-DNEPSN3P.mjs → token-goat-chunk-77CX3MCN.mjs} +4 -7
- package/dist/token-goat-chunk-AEX54RUZ.mjs +11 -0
- package/dist/{token-goat-chunk-3KW5C2KQ.mjs → token-goat-chunk-AO2QD2AG.mjs} +0 -4
- package/dist/{token-goat-hook-chunk-TKXOXN4J.mjs → token-goat-chunk-DG53MVNJ.mjs} +2 -98
- package/dist/{token-goat-chunk-N53GXI2Z.mjs → token-goat-chunk-FN6WLFIX.mjs} +14 -32
- package/dist/{token-goat-chunk-YWYITDOS.mjs → token-goat-chunk-G6XLWJWI.mjs} +2 -5
- package/dist/{token-goat-chunk-TBCLQTPG.mjs → token-goat-chunk-HPWPUBAK.mjs} +7 -7
- package/dist/{token-goat-chunk-DFBD2FFU.mjs → token-goat-chunk-L6FVTDPD.mjs} +9 -121
- package/dist/{token-goat-chunk-O7TGKV5I.mjs → token-goat-chunk-OHQ7RBLL.mjs} +23 -24
- package/dist/{token-goat-chunk-RD6O3PJU.mjs → token-goat-chunk-RPOXYJWK.mjs} +3642 -3329
- package/dist/{token-goat-chunk-GWZJ5SI2.mjs → token-goat-chunk-RQQ4SY2P.mjs} +1 -31
- package/dist/{token-goat-chunk-X5OPORR4.mjs → token-goat-chunk-TDYTBCT4.mjs} +1031 -1784
- package/dist/{token-goat-chunk-5EXIMDHA.mjs → token-goat-chunk-WFRR2DBG.mjs} +1131 -51
- package/dist/{token-goat-hook-chunk-UXD3B4OY.mjs → token-goat-hook-chunk-26DLRODR.mjs} +4 -7
- package/dist/{token-goat-chunk-4M7PSAO3.mjs → token-goat-hook-chunk-3QYSN4QV.mjs} +2 -98
- package/dist/{token-goat-hook-chunk-J2ZK2FYW.mjs → token-goat-hook-chunk-BUOCULAM.mjs} +0 -4
- package/dist/{token-goat-hook-chunk-DHW6SRHR.mjs → token-goat-hook-chunk-E6AIPKNF.mjs} +1131 -51
- package/dist/{token-goat-hook-chunk-TBJ5PUPQ.mjs → token-goat-hook-chunk-EKGDLI4D.mjs} +6 -9
- package/dist/{token-goat-hook-chunk-VHZECEQD.mjs → token-goat-hook-chunk-HXHFLKEL.mjs} +1 -31
- package/dist/{token-goat-hook-chunk-DJZGX27J.mjs → token-goat-hook-chunk-QD2DX2U7.mjs} +7 -120
- package/dist/token-goat-hook-chunk-RFRLWOQH.mjs +11 -0
- package/dist/{token-goat-hook-chunk-WBTHUYJP.mjs → token-goat-hook-chunk-UWV4MTYI.mjs} +1039 -1790
- package/dist/{token-goat-hook-chunk-Q5URQRIF.mjs → token-goat-hook-chunk-VDXQXYJK.mjs} +14 -32
- package/dist/{token-goat-hook-chunk-6NF4WM2U.mjs → token-goat-hook-chunk-WBBHV6TZ.mjs} +3643 -3330
- package/dist/token-goat-hook-chunk-XBOWDNJB.mjs +23 -0
- package/dist/{token-goat-hook-chunk-PCP4W65Z.mjs → token-goat-hook-chunk-XUMIVYEN.mjs} +2 -5
- package/dist/{token-goat-hook-chunk-LFYT4DLB.mjs → token-goat-hook-chunk-ZT47M3IA.mjs} +23 -24
- package/dist/token-goat-hook.mjs +7 -12
- package/dist/token-goat.core.mjs +7 -10
- package/package.json +13 -33
- package/dist/token-goat-chunk-3UOG7PSZ.mjs +0 -63
- package/dist/token-goat-hook-chunk-ANFXTEQO.mjs +0 -23
- package/dist/token-goat-hook-chunk-K33JMLL7.mjs +0 -63
|
@@ -5,14 +5,10 @@ import {
|
|
|
5
5
|
MAX_OVER_FETCH,
|
|
6
6
|
OVER_FETCH_FACTOR,
|
|
7
7
|
SKIP_DIRS,
|
|
8
|
-
_detectOpenQuote,
|
|
9
|
-
_lineClosesQuote,
|
|
10
|
-
buildLineIndex,
|
|
11
8
|
capJsonRows,
|
|
12
9
|
countRefs,
|
|
13
10
|
countSymbols,
|
|
14
11
|
createLazyModuleLoader,
|
|
15
|
-
detectLanguage,
|
|
16
12
|
distinctSymbolKinds,
|
|
17
13
|
eachUnfencedLine,
|
|
18
14
|
emptyIndexMessage,
|
|
@@ -21,7 +17,6 @@ import {
|
|
|
21
17
|
extractPdfMeta,
|
|
22
18
|
extractPdfOutline,
|
|
23
19
|
extractPdfText,
|
|
24
|
-
findHtmlHeadingMatches,
|
|
25
20
|
formatCsvProfile,
|
|
26
21
|
formatCsvTable,
|
|
27
22
|
getFileEntry,
|
|
@@ -34,7 +29,6 @@ import {
|
|
|
34
29
|
loadBlob,
|
|
35
30
|
mergeNearbyHits,
|
|
36
31
|
ocrImage,
|
|
37
|
-
offsetToLine,
|
|
38
32
|
parseWhereSpecs,
|
|
39
33
|
pathEqClause,
|
|
40
34
|
probeImageMeta,
|
|
@@ -52,23 +46,27 @@ import {
|
|
|
52
46
|
stripLeadingAttributes,
|
|
53
47
|
tomlBracketDelta,
|
|
54
48
|
trimToBudget,
|
|
55
|
-
unsupportedLanguageName,
|
|
56
49
|
urlPolicyDenialReason,
|
|
57
50
|
walkProject,
|
|
58
51
|
yamlLineClosesQuote,
|
|
59
52
|
yamlOpenQuoteAfter
|
|
60
|
-
} from "./token-goat-chunk-
|
|
53
|
+
} from "./token-goat-chunk-TDYTBCT4.mjs";
|
|
61
54
|
import {
|
|
62
55
|
PER_FILE_COUNTERFACTUAL_CEILING,
|
|
56
|
+
_detectOpenQuote,
|
|
57
|
+
_lineClosesQuote,
|
|
63
58
|
atomicWriteBytes,
|
|
64
59
|
buildContextWindow,
|
|
60
|
+
buildLineIndex,
|
|
65
61
|
colorStdout,
|
|
66
62
|
compileGrepMatcher,
|
|
67
63
|
countNoun,
|
|
64
|
+
detectLanguage,
|
|
68
65
|
ensureNewline,
|
|
69
66
|
escapeRegExp,
|
|
70
67
|
excludeTestsHiddenNote,
|
|
71
68
|
extractErrorMessage,
|
|
69
|
+
findHtmlHeadingMatches,
|
|
72
70
|
findProject,
|
|
73
71
|
fingerprintContent,
|
|
74
72
|
fingerprintFile,
|
|
@@ -81,7 +79,9 @@ import {
|
|
|
81
79
|
isTestFile,
|
|
82
80
|
loadConfig,
|
|
83
81
|
normalizePath,
|
|
82
|
+
offsetToLine,
|
|
84
83
|
recordStat,
|
|
84
|
+
redactIfDotenv,
|
|
85
85
|
redactSecrets,
|
|
86
86
|
redactUrlQuery,
|
|
87
87
|
renderContextWindow,
|
|
@@ -94,18 +94,15 @@ import {
|
|
|
94
94
|
stripAnsi,
|
|
95
95
|
stripBom,
|
|
96
96
|
toDisplayPath,
|
|
97
|
+
unsupportedLanguageName,
|
|
97
98
|
windowsCmdQuoteArg,
|
|
98
99
|
withExtension
|
|
99
|
-
} from "./token-goat-chunk-
|
|
100
|
+
} from "./token-goat-chunk-WFRR2DBG.mjs";
|
|
100
101
|
import {
|
|
101
102
|
registerReset
|
|
102
|
-
} from "./token-goat-chunk-
|
|
103
|
-
import {
|
|
104
|
-
init_define_import_meta_env
|
|
105
|
-
} from "./token-goat-chunk-3UOG7PSZ.mjs";
|
|
103
|
+
} from "./token-goat-chunk-AO2QD2AG.mjs";
|
|
106
104
|
|
|
107
105
|
// src/repomap.ts
|
|
108
|
-
init_define_import_meta_env();
|
|
109
106
|
import * as fs from "fs";
|
|
110
107
|
import * as path from "path";
|
|
111
108
|
function getTrackedFiles(cwd = process.cwd()) {
|
|
@@ -131,7 +128,6 @@ function getTrackedFiles(cwd = process.cwd()) {
|
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
// src/section_reader.ts
|
|
134
|
-
init_define_import_meta_env();
|
|
135
131
|
import { readFileSync } from "node:fs";
|
|
136
132
|
function parseHeadingSpec(spec, headers) {
|
|
137
133
|
const m = /^(.*?)#(\d+)$/.exec(spec);
|
|
@@ -399,7 +395,7 @@ function readTextForSections(filePath, readFn) {
|
|
|
399
395
|
if (text.charCodeAt(0) === 65279) {
|
|
400
396
|
text = text.slice(1);
|
|
401
397
|
}
|
|
402
|
-
return text;
|
|
398
|
+
return redactIfDotenv(filePath, text);
|
|
403
399
|
}
|
|
404
400
|
function readSection(filePath, headingSpec, readFn) {
|
|
405
401
|
const text = readTextForSections(filePath, readFn);
|
|
@@ -439,7 +435,6 @@ function listSections(filePath, readFn) {
|
|
|
439
435
|
}
|
|
440
436
|
|
|
441
437
|
// src/graph_commands.ts
|
|
442
|
-
init_define_import_meta_env();
|
|
443
438
|
import * as fs6 from "node:fs";
|
|
444
439
|
import * as os from "node:os";
|
|
445
440
|
import * as path6 from "node:path";
|
|
@@ -447,12 +442,10 @@ import { execFileSync, spawnSync as spawnSync2 } from "node:child_process";
|
|
|
447
442
|
import { randomUUID } from "node:crypto";
|
|
448
443
|
|
|
449
444
|
// src/read_commands.ts
|
|
450
|
-
init_define_import_meta_env();
|
|
451
445
|
import * as fs5 from "node:fs";
|
|
452
446
|
import * as path5 from "node:path";
|
|
453
447
|
|
|
454
448
|
// src/json_query.ts
|
|
455
|
-
init_define_import_meta_env();
|
|
456
449
|
function jsonType(value) {
|
|
457
450
|
if (value === null) return "null";
|
|
458
451
|
if (Array.isArray(value)) return "array";
|
|
@@ -591,7 +584,6 @@ function queryJson(data, spec) {
|
|
|
591
584
|
}
|
|
592
585
|
|
|
593
586
|
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
594
|
-
init_define_import_meta_env();
|
|
595
587
|
var NOT_RESOLVED = /* @__PURE__ */ Symbol("NOT_RESOLVED");
|
|
596
588
|
function defineScalarTag(tagName, options) {
|
|
597
589
|
return {
|
|
@@ -2949,7 +2941,6 @@ var CHOMPING_STRIP = CHOMPING_MODE.STRIP;
|
|
|
2949
2941
|
var CHOMPING_KEEP = CHOMPING_MODE.KEEP;
|
|
2950
2942
|
|
|
2951
2943
|
// src/openapi_query.ts
|
|
2952
|
-
init_define_import_meta_env();
|
|
2953
2944
|
import * as path2 from "node:path";
|
|
2954
2945
|
var HTTP_METHODS = ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
|
|
2955
2946
|
function parseOpenApiSpec(text, filePath) {
|
|
@@ -3069,7 +3060,6 @@ function formatOperationDetail(op) {
|
|
|
3069
3060
|
}
|
|
3070
3061
|
|
|
3071
3062
|
// src/archive_query.ts
|
|
3072
|
-
init_define_import_meta_env();
|
|
3073
3063
|
var loadFflate = createLazyModuleLoader(
|
|
3074
3064
|
async () => await import("fflate"),
|
|
3075
3065
|
"archive reading disabled (fflate unavailable)"
|
|
@@ -3113,7 +3103,6 @@ async function extractZipEntry(data, entryPath) {
|
|
|
3113
3103
|
}
|
|
3114
3104
|
|
|
3115
3105
|
// src/pr_slice.ts
|
|
3116
|
-
init_define_import_meta_env();
|
|
3117
3106
|
import { spawnSync } from "node:child_process";
|
|
3118
3107
|
var _ghAvailable;
|
|
3119
3108
|
function isGhAvailable() {
|
|
@@ -3283,7 +3272,6 @@ ${c.body}`).join("\n\n");
|
|
|
3283
3272
|
}
|
|
3284
3273
|
|
|
3285
3274
|
// src/sqlite_query.ts
|
|
3286
|
-
init_define_import_meta_env();
|
|
3287
3275
|
import * as fs2 from "node:fs";
|
|
3288
3276
|
import Database from "better-sqlite3";
|
|
3289
3277
|
var SQLITE_QUERY_ROW_CAP = 5e3;
|
|
@@ -3547,7 +3535,6 @@ function quoteCsvCellLocal(cell) {
|
|
|
3547
3535
|
}
|
|
3548
3536
|
|
|
3549
3537
|
// src/coverage_query.ts
|
|
3550
|
-
init_define_import_meta_env();
|
|
3551
3538
|
function num(v) {
|
|
3552
3539
|
return typeof v === "number" && Number.isFinite(v) ? v : 0;
|
|
3553
3540
|
}
|
|
@@ -3849,7 +3836,6 @@ function formatCoverageGaps(report) {
|
|
|
3849
3836
|
}
|
|
3850
3837
|
|
|
3851
3838
|
// src/conflict_query.ts
|
|
3852
|
-
init_define_import_meta_env();
|
|
3853
3839
|
var OURS_RE = /^<{7}(?:\s+(.*))?$/;
|
|
3854
3840
|
var BASE_RE = /^\|{7}(?:\s+(.*))?$/;
|
|
3855
3841
|
var SEP_RE = /^={7}\s*$/;
|
|
@@ -4014,7 +4000,6 @@ function formatConflictSummaries(summaries) {
|
|
|
4014
4000
|
}
|
|
4015
4001
|
|
|
4016
4002
|
// src/screenshot.ts
|
|
4017
|
-
init_define_import_meta_env();
|
|
4018
4003
|
import dns from "node:dns/promises";
|
|
4019
4004
|
import fs3 from "node:fs";
|
|
4020
4005
|
import path3 from "node:path";
|
|
@@ -4378,7 +4363,6 @@ async function takeScreenshot(url, destPath, opts) {
|
|
|
4378
4363
|
}
|
|
4379
4364
|
|
|
4380
4365
|
// src/notes.ts
|
|
4381
|
-
init_define_import_meta_env();
|
|
4382
4366
|
import * as fs4 from "node:fs";
|
|
4383
4367
|
var WHOLE_FILE_NOTE_SYMBOL = "";
|
|
4384
4368
|
function toNoteRow(row) {
|
|
@@ -4454,7 +4438,6 @@ function isNoteStale(note, dbPath = globalDbPath()) {
|
|
|
4454
4438
|
}
|
|
4455
4439
|
|
|
4456
4440
|
// src/ts_refs.ts
|
|
4457
|
-
init_define_import_meta_env();
|
|
4458
4441
|
import { createRequire } from "node:module";
|
|
4459
4442
|
import * as path4 from "node:path";
|
|
4460
4443
|
var _require = createRequire(import.meta.url);
|
|
@@ -4750,8 +4733,8 @@ function readFileText(p) {
|
|
|
4750
4733
|
verifyStillAbsent(p);
|
|
4751
4734
|
return null;
|
|
4752
4735
|
}
|
|
4753
|
-
if (pinned !== void 0) return readPinnedBytes(p, pinned).toString("utf-8");
|
|
4754
|
-
return fs5.readFileSync(p, "utf-8");
|
|
4736
|
+
if (pinned !== void 0) return redactIfDotenv(p, readPinnedBytes(p, pinned).toString("utf-8"));
|
|
4737
|
+
return redactIfDotenv(p, fs5.readFileSync(p, "utf-8"));
|
|
4755
4738
|
} catch (err) {
|
|
4756
4739
|
if (err instanceof ConfinementIdentityError) throw err;
|
|
4757
4740
|
return null;
|
|
@@ -9442,7 +9425,6 @@ ANSWER:`;
|
|
|
9442
9425
|
}
|
|
9443
9426
|
|
|
9444
9427
|
// src/content_store.ts
|
|
9445
|
-
init_define_import_meta_env();
|
|
9446
9428
|
import { deflateRawSync } from "node:zlib";
|
|
9447
9429
|
import * as path7 from "node:path";
|
|
9448
9430
|
var CONTENT_MAX_INPUT_CHARS = 512 * 1024;
|
|
@@ -2,13 +2,10 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
clearModuleCaches
|
|
5
|
-
} from "./token-goat-chunk-
|
|
6
|
-
import
|
|
7
|
-
init_define_import_meta_env
|
|
8
|
-
} from "./token-goat-chunk-3UOG7PSZ.mjs";
|
|
5
|
+
} from "./token-goat-chunk-AO2QD2AG.mjs";
|
|
6
|
+
import "./token-goat-chunk-AEX54RUZ.mjs";
|
|
9
7
|
|
|
10
8
|
// src/batch_serve.ts
|
|
11
|
-
init_define_import_meta_env();
|
|
12
9
|
function swapEnv(next) {
|
|
13
10
|
const before = { ...process.env };
|
|
14
11
|
for (const key of Object.keys(process.env)) if (!(key in next)) delete process.env[key];
|
|
@@ -7,13 +7,13 @@ 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-
|
|
15
|
-
import "./token-goat-chunk-
|
|
16
|
-
import "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-RPOXYJWK.mjs";
|
|
11
|
+
import "./token-goat-chunk-FN6WLFIX.mjs";
|
|
12
|
+
import "./token-goat-chunk-OHQ7RBLL.mjs";
|
|
13
|
+
import "./token-goat-chunk-TDYTBCT4.mjs";
|
|
14
|
+
import "./token-goat-chunk-WFRR2DBG.mjs";
|
|
15
|
+
import "./token-goat-chunk-AO2QD2AG.mjs";
|
|
16
|
+
import "./token-goat-chunk-AEX54RUZ.mjs";
|
|
17
17
|
export {
|
|
18
18
|
applyExitOverride,
|
|
19
19
|
buildProgram,
|