token-goat 2.9.9 → 2.9.11

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.
Files changed (27) hide show
  1. package/README.md +54 -11
  2. package/SECURITY.md +17 -19
  3. package/THIRD_PARTY_NOTICES.md +667 -0
  4. package/dist/token-goat-chunk-2ZUPQYLO.mjs +3728 -0
  5. package/dist/{token-goat-chunk-LQ3SGWIW.mjs → token-goat-chunk-3ZALKJ23.mjs} +69 -37
  6. package/dist/{token-goat-chunk-WBPVYAEO.mjs → token-goat-chunk-4NZUXC4F.mjs} +3 -2
  7. package/dist/{token-goat-chunk-KIEOFWLL.mjs → token-goat-chunk-AAEYU2U2.mjs} +5307 -6350
  8. package/dist/{token-goat-chunk-OBDTBOQA.mjs → token-goat-chunk-FDURVZQD.mjs} +10 -2
  9. package/dist/{token-goat-chunk-DRH4CVGF.mjs → token-goat-chunk-HDL77BN3.mjs} +11 -7
  10. package/dist/{token-goat-chunk-LYWIRYCF.mjs → token-goat-chunk-LHLQFGWQ.mjs} +1 -1
  11. package/dist/{token-goat-chunk-L6Q2XM5X.mjs → token-goat-chunk-LKOYKSID.mjs} +1275 -655
  12. package/dist/{token-goat-chunk-P5SQX2VK.mjs → token-goat-chunk-MKITQ5RY.mjs} +354 -180
  13. package/dist/{token-goat-chunk-PNMGVJ4C.mjs → token-goat-chunk-MRZ555B3.mjs} +2699 -2175
  14. package/dist/{token-goat-chunk-K5GKX6ND.mjs → token-goat-chunk-PJPFOOGM.mjs} +6 -5
  15. package/dist/{token-goat-chunk-FQD3OB5W.mjs → token-goat-chunk-QCQUIPIP.mjs} +6068 -1687
  16. package/dist/{token-goat-chunk-BYDDWQ2T.mjs → token-goat-chunk-SY7WTZMW.mjs} +5043 -7721
  17. package/dist/{token-goat-chunk-PXWBHSFB.mjs → token-goat-chunk-T6M7DAW3.mjs} +31 -4
  18. package/dist/{token-goat-chunk-QCHD2ENV.mjs → token-goat-chunk-V53Z47ZH.mjs} +85 -328
  19. package/dist/token-goat-chunk-Y5VKNLVD.mjs +5942 -0
  20. package/dist/token-goat-chunk-YCKCFYTM.mjs +3564 -0
  21. package/dist/token-goat-hook.mjs +6 -5
  22. package/dist/token-goat.core.mjs +8 -6
  23. package/docs/C4_RUNTIME_ARCHITECTURE.md +1 -1
  24. package/docs/cli.md +4 -1
  25. package/docs/install.md +131 -11
  26. package/docs/security.md +3 -1
  27. package/package.json +8 -3
@@ -2,7 +2,7 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  detectHarness
5
- } from "./token-goat-chunk-KIEOFWLL.mjs";
5
+ } from "./token-goat-chunk-AAEYU2U2.mjs";
6
6
  import {
7
7
  init_define_import_meta_env
8
8
  } from "./token-goat-chunk-A37V4PBF.mjs";
@@ -13,6 +13,14 @@ var CLAUDE_CODE_BASH_OUTPUT_CAP_BYTES = 2e4;
13
13
  function bashOutputCapBytes(harness = detectHarness()) {
14
14
  return harness === "claudecode" ? CLAUDE_CODE_BASH_OUTPUT_CAP_BYTES : null;
15
15
  }
16
+ function clipToDeliveryCap(text, reserveBytes) {
17
+ const cap = bashOutputCapBytes();
18
+ const room = cap === null ? null : cap - reserveBytes;
19
+ if (room === null || room <= 0 || Buffer.byteLength(text, "utf-8") <= room) return { text, clipped: false };
20
+ const sliced = Buffer.from(text, "utf-8").subarray(0, room).toString("utf-8");
21
+ const lastNewline = sliced.lastIndexOf("\n");
22
+ return { text: lastNewline > 0 ? sliced.slice(0, lastNewline) : sliced, clipped: true };
23
+ }
16
24
  function deliveredOutputBytes(originalBytes, harness) {
17
25
  const cap = bashOutputCapBytes(harness);
18
26
  if (cap === null) return Math.max(0, originalBytes);
@@ -78,7 +86,7 @@ function canRunWrappedShell() {
78
86
  }
79
87
 
80
88
  export {
81
- bashOutputCapBytes,
89
+ clipToDeliveryCap,
82
90
  deliveredOutputBytes,
83
91
  wrappedShell,
84
92
  canRunWrappedShell
@@ -6,13 +6,16 @@ import {
6
6
  cmdIndex,
7
7
  expandGlobs,
8
8
  leftoverIntegrations,
9
- run
10
- } from "./token-goat-chunk-PNMGVJ4C.mjs";
11
- import "./token-goat-chunk-L6Q2XM5X.mjs";
12
- import "./token-goat-chunk-QCHD2ENV.mjs";
13
- import "./token-goat-chunk-BYDDWQ2T.mjs";
14
- import "./token-goat-chunk-KIEOFWLL.mjs";
9
+ run,
10
+ visualStudioManualSteps
11
+ } from "./token-goat-chunk-MRZ555B3.mjs";
12
+ import "./token-goat-chunk-LKOYKSID.mjs";
13
+ import "./token-goat-chunk-2ZUPQYLO.mjs";
14
+ import "./token-goat-chunk-V53Z47ZH.mjs";
15
+ import "./token-goat-chunk-SY7WTZMW.mjs";
16
+ import "./token-goat-chunk-AAEYU2U2.mjs";
15
17
  import "./token-goat-chunk-EEIDFMEM.mjs";
18
+ import "./token-goat-chunk-YCKCFYTM.mjs";
16
19
  import "./token-goat-chunk-A37V4PBF.mjs";
17
20
  export {
18
21
  applyExitOverride,
@@ -20,5 +23,6 @@ export {
20
23
  cmdIndex,
21
24
  expandGlobs,
22
25
  leftoverIntegrations,
23
- run
26
+ run,
27
+ visualStudioManualSteps
24
28
  };
@@ -2,7 +2,7 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  external_exports
5
- } from "./token-goat-chunk-FQD3OB5W.mjs";
5
+ } from "./token-goat-chunk-QCQUIPIP.mjs";
6
6
  import {
7
7
  init_define_import_meta_env
8
8
  } from "./token-goat-chunk-A37V4PBF.mjs";