token-goat 2.6.30 → 2.6.32
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 +55 -16
- package/SECURITY.md +136 -0
- package/dist/{token-goat-hook-chunk-KNVHTGEX.mjs → token-goat-chunk-3KW5C2KQ.mjs} +1 -1
- package/dist/{token-goat-hook-chunk-7WC2H3EW.mjs → token-goat-chunk-3UOG7PSZ.mjs} +12 -3
- package/dist/{token-goat-hook-chunk-FKZ5RBT4.mjs → token-goat-chunk-4M7PSAO3.mjs} +8 -8
- package/dist/token-goat-chunk-5EXIMDHA.mjs +5113 -0
- package/dist/token-goat-chunk-DFBD2FFU.mjs +9627 -0
- package/dist/token-goat-chunk-DNEPSN3P.mjs +156 -0
- package/dist/token-goat-chunk-GWZJ5SI2.mjs +13684 -0
- package/dist/token-goat-chunk-N53GXI2Z.mjs +9660 -0
- package/dist/token-goat-chunk-O7TGKV5I.mjs +901 -0
- package/dist/token-goat-chunk-RD6O3PJU.mjs +15606 -0
- package/dist/token-goat-chunk-TBCLQTPG.mjs +24 -0
- package/dist/token-goat-chunk-W3MX4LQV.mjs +707 -0
- package/dist/token-goat-chunk-X5OPORR4.mjs +18331 -0
- package/dist/{token-goat-hook-chunk-ZRJUZZQE.mjs → token-goat-chunk-YWYITDOS.mjs} +5 -6
- package/dist/{token-goat-hook-chunk-XNZLMFQ2.mjs → token-goat-hook-chunk-6NF4WM2U.mjs} +2772 -883
- package/dist/token-goat-hook-chunk-ANFXTEQO.mjs +23 -0
- package/dist/token-goat-hook-chunk-DHW6SRHR.mjs +5099 -0
- package/dist/token-goat-hook-chunk-DJZGX27J.mjs +9624 -0
- package/dist/token-goat-hook-chunk-J2ZK2FYW.mjs +33 -0
- package/dist/token-goat-hook-chunk-K33JMLL7.mjs +63 -0
- package/dist/token-goat-hook-chunk-LFYT4DLB.mjs +901 -0
- package/dist/token-goat-hook-chunk-PCP4W65Z.mjs +112 -0
- package/dist/token-goat-hook-chunk-Q5URQRIF.mjs +9660 -0
- package/dist/{token-goat-hook-chunk-FMQ37OQD.mjs → token-goat-hook-chunk-TBJ5PUPQ.mjs} +28 -26
- package/dist/token-goat-hook-chunk-TKXOXN4J.mjs +14860 -0
- package/dist/token-goat-hook-chunk-UXD3B4OY.mjs +156 -0
- package/dist/token-goat-hook-chunk-VHZECEQD.mjs +13684 -0
- package/dist/token-goat-hook-chunk-WBTHUYJP.mjs +18329 -0
- package/dist/token-goat-hook.mjs +7 -4
- package/dist/token-goat.core.mjs +14 -89574
- package/package.json +15 -6
- package/dist/token-goat-hook-chunk-4SM2PAR6.mjs +0 -33590
- package/dist/token-goat-hook-chunk-5B3OWRNC.mjs +0 -145
- package/dist/token-goat-hook-chunk-VKAQNN2R.mjs +0 -24416
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
import { createRequire as __cjsRequire } from 'node:module';
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
ABSENT_PIN,
|
|
4
5
|
CONTENT_MAX_INPUT_CHARS,
|
|
6
|
+
ConfinementIdentityError,
|
|
5
7
|
compressText,
|
|
6
8
|
createHandoff,
|
|
7
|
-
resolveHandoff,
|
|
8
|
-
retrieveText
|
|
9
|
-
} from "./token-goat-hook-chunk-5B3OWRNC.mjs";
|
|
10
|
-
import {
|
|
11
|
-
ABSENT_PIN,
|
|
12
|
-
ConfinementIdentityError,
|
|
13
|
-
VERSION,
|
|
14
|
-
buildProjectMap,
|
|
15
|
-
dataDir,
|
|
16
|
-
embeddingsDepsAvailable,
|
|
17
|
-
extractErrorMessage,
|
|
18
9
|
fileIdentity,
|
|
19
10
|
findSpecSeparator,
|
|
20
|
-
formatProjectMap,
|
|
21
|
-
getDb,
|
|
22
|
-
getDirtyPathsFor,
|
|
23
|
-
getProjectIndexCounts,
|
|
24
|
-
globalDbPath,
|
|
25
|
-
isWorkerRunning,
|
|
26
|
-
loadConfig,
|
|
27
|
-
mapLookupBytesSaved,
|
|
28
|
-
normalizePath,
|
|
29
11
|
parseLineRange,
|
|
30
12
|
pinKey,
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
resolveHandoff,
|
|
14
|
+
retrieveText,
|
|
33
15
|
runBrief,
|
|
34
16
|
runChanged,
|
|
35
17
|
runExports,
|
|
@@ -43,11 +25,31 @@ import {
|
|
|
43
25
|
runSkeleton,
|
|
44
26
|
runSymbol,
|
|
45
27
|
withPinnedReads
|
|
46
|
-
} from "./token-goat-hook-chunk-
|
|
47
|
-
import
|
|
28
|
+
} from "./token-goat-hook-chunk-Q5URQRIF.mjs";
|
|
29
|
+
import {
|
|
30
|
+
buildProjectMap,
|
|
31
|
+
embeddingsDepsAvailable,
|
|
32
|
+
formatProjectMap,
|
|
33
|
+
getDirtyPathsFor,
|
|
34
|
+
getProjectIndexCounts,
|
|
35
|
+
isWorkerRunning,
|
|
36
|
+
mapLookupBytesSaved
|
|
37
|
+
} from "./token-goat-hook-chunk-WBTHUYJP.mjs";
|
|
38
|
+
import {
|
|
39
|
+
VERSION,
|
|
40
|
+
dataDir,
|
|
41
|
+
extractErrorMessage,
|
|
42
|
+
getDb,
|
|
43
|
+
globalDbPath,
|
|
44
|
+
loadConfig,
|
|
45
|
+
normalizePath,
|
|
46
|
+
recordStat,
|
|
47
|
+
resolveProjectRoot
|
|
48
|
+
} from "./token-goat-hook-chunk-DHW6SRHR.mjs";
|
|
49
|
+
import "./token-goat-hook-chunk-J2ZK2FYW.mjs";
|
|
48
50
|
import {
|
|
49
51
|
init_define_import_meta_env
|
|
50
|
-
} from "./token-goat-hook-chunk-
|
|
52
|
+
} from "./token-goat-hook-chunk-K33JMLL7.mjs";
|
|
51
53
|
|
|
52
54
|
// src/mcp_server.ts
|
|
53
55
|
init_define_import_meta_env();
|
|
@@ -200,7 +202,7 @@ function withConfinedRead(pins, fn) {
|
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
async function createMcpServer() {
|
|
203
|
-
const [{ McpServer }, { z }] = await Promise.all([import("@modelcontextprotocol/sdk/server/mcp.js"), import("./token-goat-hook-chunk-
|
|
205
|
+
const [{ McpServer }, { z }] = await Promise.all([import("@modelcontextprotocol/sdk/server/mcp.js"), import("./token-goat-hook-chunk-TKXOXN4J.mjs")]);
|
|
204
206
|
const server = new McpServer({ name: "token-goat", version: VERSION });
|
|
205
207
|
const makeProjectRootField = (verb) => z.string().optional().describe(
|
|
206
208
|
`absolute path to the workspace root to scope this ${verb} to; defaults to the MCP server process's cwd, which is not always the actual workspace root for MCP clients -- pass this explicitly when it might differ`
|