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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __cjsRequire } from 'node:module';
|
|
2
|
+
const require = __cjsRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
MAX_RESUME_CHARS,
|
|
5
|
+
MAX_RESUME_TOKENS,
|
|
6
|
+
buildResumePacket
|
|
7
|
+
} from "./token-goat-chunk-64OEF3UN.mjs";
|
|
8
|
+
import "./token-goat-chunk-PDYQA3AP.mjs";
|
|
9
|
+
import "./token-goat-chunk-MECDAPXB.mjs";
|
|
10
|
+
import "./token-goat-chunk-MEKVJZUN.mjs";
|
|
11
|
+
import "./token-goat-chunk-M43UJVYQ.mjs";
|
|
12
|
+
import "./token-goat-chunk-PHDNWISV.mjs";
|
|
13
|
+
import "./token-goat-chunk-XQSSPX3X.mjs";
|
|
14
|
+
import "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
15
|
+
import "./token-goat-chunk-M6CDVASA.mjs";
|
|
16
|
+
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
17
|
+
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
18
|
+
import "./token-goat-chunk-TGBSMHPM.mjs";
|
|
19
|
+
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
20
|
+
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
21
|
+
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
22
|
+
export {
|
|
23
|
+
MAX_RESUME_CHARS,
|
|
24
|
+
MAX_RESUME_TOKENS,
|
|
25
|
+
buildResumePacket
|
|
26
|
+
};
|
|
@@ -2,22 +2,24 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ToolFilter,
|
|
5
|
-
capTokens,
|
|
6
5
|
compressedTokensSaved,
|
|
7
6
|
deliverCompressed,
|
|
8
7
|
dispatchArgv,
|
|
9
8
|
filterByName,
|
|
10
|
-
selectFilter
|
|
9
|
+
selectFilter
|
|
10
|
+
} from "./token-goat-chunk-DDP64XR7.mjs";
|
|
11
|
+
import {
|
|
12
|
+
capTokens,
|
|
11
13
|
shlexSplit,
|
|
12
14
|
storeBashOutputSync
|
|
13
|
-
} from "./token-goat-chunk-
|
|
15
|
+
} from "./token-goat-chunk-M43UJVYQ.mjs";
|
|
14
16
|
import {
|
|
15
17
|
recordStat
|
|
16
|
-
} from "./token-goat-chunk-
|
|
18
|
+
} from "./token-goat-chunk-PHDNWISV.mjs";
|
|
17
19
|
import {
|
|
18
20
|
detectHarness,
|
|
19
21
|
loadConfig
|
|
20
|
-
} from "./token-goat-chunk-
|
|
22
|
+
} from "./token-goat-chunk-M6CDVASA.mjs";
|
|
21
23
|
import {
|
|
22
24
|
init_define_import_meta_env
|
|
23
25
|
} from "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -160,19 +162,20 @@ function scheduleHeartbeat(startTime, intervalMs, write) {
|
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
164
|
function resolveFilter(command, filterName, cwd) {
|
|
165
|
+
const effectiveCwd = cwd ?? process.cwd();
|
|
163
166
|
let split;
|
|
164
167
|
try {
|
|
165
168
|
split = shlexSplit(command);
|
|
166
169
|
} catch {
|
|
167
170
|
split = null;
|
|
168
171
|
}
|
|
169
|
-
const argv = split === null ? [command] : dispatchArgv(split,
|
|
172
|
+
const argv = split === null ? [command] : dispatchArgv(split, effectiveCwd).argv;
|
|
170
173
|
if (filterName) {
|
|
171
174
|
const named = filterByName(filterName);
|
|
172
175
|
if (named !== null) return { filter: named, argv };
|
|
173
176
|
}
|
|
174
177
|
if (split === null) return { filter: null, argv };
|
|
175
|
-
return { filter: selectFilter(split,
|
|
178
|
+
return { filter: selectFilter(split, effectiveCwd), argv };
|
|
176
179
|
}
|
|
177
180
|
function baseSpawnOptions(timeout, cwd) {
|
|
178
181
|
return { timeout: timeout * 1e3, cwd };
|
|
@@ -332,6 +335,7 @@ export {
|
|
|
332
335
|
DEFAULT_TIMEOUT_SECONDS,
|
|
333
336
|
MAX_CAPTURE_BYTES,
|
|
334
337
|
DEFAULT_HEARTBEAT_INTERVAL_MS,
|
|
338
|
+
resolveFilter,
|
|
335
339
|
run,
|
|
336
340
|
runRaw
|
|
337
341
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire as __cjsRequire } from 'node:module';
|
|
2
|
+
const require = __cjsRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildEvent,
|
|
5
|
+
relay,
|
|
6
|
+
relayInProcess
|
|
7
|
+
} from "./token-goat-chunk-CZ5ZFJSN.mjs";
|
|
8
|
+
import "./token-goat-chunk-CMAJGP3E.mjs";
|
|
9
|
+
import {
|
|
10
|
+
MAX_STDIN_BYTES,
|
|
11
|
+
readStdinJson
|
|
12
|
+
} from "./token-goat-chunk-4V4OZHHV.mjs";
|
|
13
|
+
import "./token-goat-chunk-KQI24O4B.mjs";
|
|
14
|
+
import "./token-goat-chunk-PDYQA3AP.mjs";
|
|
15
|
+
import "./token-goat-chunk-SMUYPBF5.mjs";
|
|
16
|
+
import "./token-goat-chunk-DDP64XR7.mjs";
|
|
17
|
+
import "./token-goat-chunk-MQACN7VG.mjs";
|
|
18
|
+
import "./token-goat-chunk-MECDAPXB.mjs";
|
|
19
|
+
import "./token-goat-chunk-MEKVJZUN.mjs";
|
|
20
|
+
import "./token-goat-chunk-M43UJVYQ.mjs";
|
|
21
|
+
import "./token-goat-chunk-PHDNWISV.mjs";
|
|
22
|
+
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
23
|
+
import "./token-goat-chunk-IAMIQLCV.mjs";
|
|
24
|
+
import "./token-goat-chunk-XQSSPX3X.mjs";
|
|
25
|
+
import "./token-goat-chunk-2ZHD3XCD.mjs";
|
|
26
|
+
import "./token-goat-chunk-M6CDVASA.mjs";
|
|
27
|
+
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
28
|
+
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
29
|
+
import "./token-goat-chunk-TGBSMHPM.mjs";
|
|
30
|
+
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
31
|
+
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
32
|
+
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
33
|
+
import "./token-goat-chunk-RRNZMM3A.mjs";
|
|
34
|
+
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
35
|
+
export {
|
|
36
|
+
MAX_STDIN_BYTES,
|
|
37
|
+
buildEvent,
|
|
38
|
+
readStdinJson,
|
|
39
|
+
relay,
|
|
40
|
+
relayInProcess
|
|
41
|
+
};
|