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.
Files changed (35) hide show
  1. package/README.md +20 -1
  2. package/dist/{token-goat-chunk-W3MX4LQV.mjs → token-goat-chunk-72R7M5H7.mjs} +6 -9
  3. package/dist/{token-goat-chunk-DNEPSN3P.mjs → token-goat-chunk-77CX3MCN.mjs} +4 -7
  4. package/dist/token-goat-chunk-AEX54RUZ.mjs +11 -0
  5. package/dist/{token-goat-chunk-3KW5C2KQ.mjs → token-goat-chunk-AO2QD2AG.mjs} +0 -4
  6. package/dist/{token-goat-hook-chunk-TKXOXN4J.mjs → token-goat-chunk-DG53MVNJ.mjs} +2 -98
  7. package/dist/{token-goat-chunk-N53GXI2Z.mjs → token-goat-chunk-FN6WLFIX.mjs} +14 -32
  8. package/dist/{token-goat-chunk-YWYITDOS.mjs → token-goat-chunk-G6XLWJWI.mjs} +2 -5
  9. package/dist/{token-goat-chunk-TBCLQTPG.mjs → token-goat-chunk-HPWPUBAK.mjs} +7 -7
  10. package/dist/{token-goat-chunk-DFBD2FFU.mjs → token-goat-chunk-L6FVTDPD.mjs} +9 -121
  11. package/dist/{token-goat-chunk-O7TGKV5I.mjs → token-goat-chunk-OHQ7RBLL.mjs} +23 -24
  12. package/dist/{token-goat-chunk-RD6O3PJU.mjs → token-goat-chunk-RPOXYJWK.mjs} +3642 -3329
  13. package/dist/{token-goat-chunk-GWZJ5SI2.mjs → token-goat-chunk-RQQ4SY2P.mjs} +1 -31
  14. package/dist/{token-goat-chunk-X5OPORR4.mjs → token-goat-chunk-TDYTBCT4.mjs} +1031 -1784
  15. package/dist/{token-goat-chunk-5EXIMDHA.mjs → token-goat-chunk-WFRR2DBG.mjs} +1131 -51
  16. package/dist/{token-goat-hook-chunk-UXD3B4OY.mjs → token-goat-hook-chunk-26DLRODR.mjs} +4 -7
  17. package/dist/{token-goat-chunk-4M7PSAO3.mjs → token-goat-hook-chunk-3QYSN4QV.mjs} +2 -98
  18. package/dist/{token-goat-hook-chunk-J2ZK2FYW.mjs → token-goat-hook-chunk-BUOCULAM.mjs} +0 -4
  19. package/dist/{token-goat-hook-chunk-DHW6SRHR.mjs → token-goat-hook-chunk-E6AIPKNF.mjs} +1131 -51
  20. package/dist/{token-goat-hook-chunk-TBJ5PUPQ.mjs → token-goat-hook-chunk-EKGDLI4D.mjs} +6 -9
  21. package/dist/{token-goat-hook-chunk-VHZECEQD.mjs → token-goat-hook-chunk-HXHFLKEL.mjs} +1 -31
  22. package/dist/{token-goat-hook-chunk-DJZGX27J.mjs → token-goat-hook-chunk-QD2DX2U7.mjs} +7 -120
  23. package/dist/token-goat-hook-chunk-RFRLWOQH.mjs +11 -0
  24. package/dist/{token-goat-hook-chunk-WBTHUYJP.mjs → token-goat-hook-chunk-UWV4MTYI.mjs} +1039 -1790
  25. package/dist/{token-goat-hook-chunk-Q5URQRIF.mjs → token-goat-hook-chunk-VDXQXYJK.mjs} +14 -32
  26. package/dist/{token-goat-hook-chunk-6NF4WM2U.mjs → token-goat-hook-chunk-WBBHV6TZ.mjs} +3643 -3330
  27. package/dist/token-goat-hook-chunk-XBOWDNJB.mjs +23 -0
  28. package/dist/{token-goat-hook-chunk-PCP4W65Z.mjs → token-goat-hook-chunk-XUMIVYEN.mjs} +2 -5
  29. package/dist/{token-goat-hook-chunk-LFYT4DLB.mjs → token-goat-hook-chunk-ZT47M3IA.mjs} +23 -24
  30. package/dist/token-goat-hook.mjs +7 -12
  31. package/dist/token-goat.core.mjs +7 -10
  32. package/package.json +13 -33
  33. package/dist/token-goat-chunk-3UOG7PSZ.mjs +0 -63
  34. package/dist/token-goat-hook-chunk-ANFXTEQO.mjs +0 -23
  35. package/dist/token-goat-hook-chunk-K33JMLL7.mjs +0 -63
@@ -0,0 +1,23 @@
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-hook-chunk-QD2DX2U7.mjs";
8
+ import "./token-goat-hook-chunk-HXHFLKEL.mjs";
9
+ import {
10
+ MAX_STDIN_BYTES,
11
+ readStdinJson
12
+ } from "./token-goat-hook-chunk-ZT47M3IA.mjs";
13
+ import "./token-goat-hook-chunk-UWV4MTYI.mjs";
14
+ import "./token-goat-hook-chunk-E6AIPKNF.mjs";
15
+ import "./token-goat-hook-chunk-BUOCULAM.mjs";
16
+ import "./token-goat-hook-chunk-RFRLWOQH.mjs";
17
+ export {
18
+ MAX_STDIN_BYTES,
19
+ buildEvent,
20
+ readStdinJson,
21
+ relay,
22
+ relayInProcess
23
+ };
@@ -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-hook-chunk-J2ZK2FYW.mjs";
6
- import {
7
- init_define_import_meta_env
8
- } from "./token-goat-hook-chunk-K33JMLL7.mjs";
5
+ } from "./token-goat-hook-chunk-BUOCULAM.mjs";
6
+ import "./token-goat-hook-chunk-RFRLWOQH.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];
@@ -6,7 +6,7 @@ import {
6
6
  loadBlob,
7
7
  sanitizeFtsQuery,
8
8
  storeBlob
9
- } from "./token-goat-hook-chunk-WBTHUYJP.mjs";
9
+ } from "./token-goat-hook-chunk-UWV4MTYI.mjs";
10
10
  import {
11
11
  SYMBOL_BODY_CHAR_CAP,
12
12
  extractErrorMessage,
@@ -16,16 +16,12 @@ import {
16
16
  redactSecrets,
17
17
  runGit,
18
18
  shortFingerprint
19
- } from "./token-goat-hook-chunk-DHW6SRHR.mjs";
19
+ } from "./token-goat-hook-chunk-E6AIPKNF.mjs";
20
20
  import {
21
21
  registerReset
22
- } from "./token-goat-hook-chunk-J2ZK2FYW.mjs";
23
- import {
24
- init_define_import_meta_env
25
- } from "./token-goat-hook-chunk-K33JMLL7.mjs";
22
+ } from "./token-goat-hook-chunk-BUOCULAM.mjs";
26
23
 
27
24
  // src/hooks_cli.ts
28
- init_define_import_meta_env();
29
25
  var _LOG = {
30
26
  warn: (msg, ...args) => console.warn(`[hooks_cli] ${msg}`, ...args),
31
27
  debug: (msg, ...args) => console.error(`[hooks_cli] ${msg}`, ...args),
@@ -76,6 +72,15 @@ var GROK_TOOL_NAME_MAP = {
76
72
  var GROK_INPUT_KEY_MAP = {
77
73
  Read: { target_file: "file_path" }
78
74
  };
75
+ var KIMI_TOOL_NAME_MAP = {
76
+ FetchURL: "WebFetch",
77
+ ReadMediaFile: "Read"
78
+ };
79
+ var KIMI_INPUT_KEY_MAP = {
80
+ Read: { path: "file_path" },
81
+ Write: { path: "file_path" },
82
+ Edit: { path: "file_path" }
83
+ };
79
84
  function remapInputKeys(input, keyMap) {
80
85
  const newInput = {};
81
86
  for (const [k, v] of Object.entries(input)) {
@@ -84,17 +89,13 @@ function remapInputKeys(input, keyMap) {
84
89
  return newInput;
85
90
  }
86
91
  function remapToolName(obj, toolName, nameMap, inputKeyMap) {
87
- const mapped = nameMap[toolName];
92
+ const mapped = nameMap[toolName] ?? toolName;
88
93
  const result = { ...obj };
89
- if (mapped) {
90
- result["tool_name"] = mapped;
91
- const rawInput = obj["tool_input"];
92
- if (typeof rawInput === "object" && rawInput !== null && !Array.isArray(rawInput)) {
93
- const keyMap = inputKeyMap[mapped];
94
- if (keyMap) {
95
- result["tool_input"] = remapInputKeys(rawInput, keyMap);
96
- }
97
- }
94
+ result["tool_name"] = mapped;
95
+ const rawInput = obj["tool_input"];
96
+ const keyMap = inputKeyMap[mapped];
97
+ if (keyMap && typeof rawInput === "object" && rawInput !== null && !Array.isArray(rawInput)) {
98
+ result["tool_input"] = remapInputKeys(rawInput, keyMap);
98
99
  }
99
100
  return result;
100
101
  }
@@ -149,6 +150,11 @@ function normalizePayload(payload, harness = "claude") {
149
150
  result2["_tg_harness"] = harness;
150
151
  return result2;
151
152
  }
153
+ if (harness === "kimi") {
154
+ const result2 = remapToolName(obj, toolName, KIMI_TOOL_NAME_MAP, KIMI_INPUT_KEY_MAP);
155
+ result2["_tg_harness"] = harness;
156
+ return result2;
157
+ }
152
158
  if (harness === "gemini") {
153
159
  const result2 = remapToolName(obj, toolName, GEMINI_TOOL_NAME_MAP, GEMINI_INPUT_KEY_MAP);
154
160
  if ("functionCallId" in result2 && !("toolUseId" in result2)) {
@@ -164,7 +170,6 @@ function normalizePayload(payload, harness = "claude") {
164
170
  }
165
171
 
166
172
  // src/types.ts
167
- init_define_import_meta_env();
168
173
  var HOOK_EVENTS = [
169
174
  "pre_tool_use",
170
175
  "post_tool_use",
@@ -177,7 +182,6 @@ var HOOK_EVENTS = [
177
182
  ];
178
183
 
179
184
  // src/stdin_json.ts
180
- init_define_import_meta_env();
181
185
  var DEFAULT_STDIN_TIMEOUT_MS = 5e3;
182
186
  var MAX_STDIN_BYTES = 64 * 1024 * 1024;
183
187
  function readStdinJson(timeoutMs = DEFAULT_STDIN_TIMEOUT_MS, maxBytes = MAX_STDIN_BYTES) {
@@ -232,7 +236,6 @@ function readStdinJson(timeoutMs = DEFAULT_STDIN_TIMEOUT_MS, maxBytes = MAX_STDI
232
236
  }
233
237
 
234
238
  // src/recall_index.ts
235
- init_define_import_meta_env();
236
239
  var VALID_TYPES = ["bash", "web", "mcp"];
237
240
  function isRecallCacheType(value) {
238
241
  return VALID_TYPES.includes(value);
@@ -367,7 +370,6 @@ function searchRecall(query, opts = {}) {
367
370
  }
368
371
 
369
372
  // src/bash_output_cache.ts
370
- init_define_import_meta_env();
371
373
  import { readdirSync, readFileSync, statSync } from "fs";
372
374
  import { resolve } from "path";
373
375
  var BASH_OUTPUT_SUBDIR = "bash_outputs";
@@ -717,7 +719,6 @@ registerReset(() => {
717
719
  });
718
720
 
719
721
  // src/cli_commands.ts
720
- init_define_import_meta_env();
721
722
  function toEntry(cmd) {
722
723
  return {
723
724
  name: cmd.name(),
@@ -786,7 +787,6 @@ function formatCommandManifest(manifest) {
786
787
  }
787
788
 
788
789
  // src/web_cache.ts
789
- init_define_import_meta_env();
790
790
  var WEB_OUTPUT_SUBDIR = "web_outputs";
791
791
  var _byId2 = /* @__PURE__ */ new Map();
792
792
  var _rawById = /* @__PURE__ */ new Map();
@@ -843,7 +843,6 @@ registerReset(() => {
843
843
  });
844
844
 
845
845
  // src/symbol_body_probe.ts
846
- init_define_import_meta_env();
847
846
  import * as fs from "fs";
848
847
  var OVERSIZED_BODY_PROBE_SQL = `SELECT 1 FROM symbols WHERE LENGTH(body) > ${SYMBOL_BODY_CHAR_CAP} LIMIT 1`;
849
848
  function checkSymbolBodySize(dbPath) {
@@ -2,18 +2,13 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  relayInProcess
5
- } from "./token-goat-hook-chunk-DJZGX27J.mjs";
6
- import "./token-goat-hook-chunk-VHZECEQD.mjs";
7
- import "./token-goat-hook-chunk-LFYT4DLB.mjs";
8
- import "./token-goat-hook-chunk-WBTHUYJP.mjs";
9
- import "./token-goat-hook-chunk-DHW6SRHR.mjs";
10
- import "./token-goat-hook-chunk-J2ZK2FYW.mjs";
11
- import {
12
- init_define_import_meta_env
13
- } from "./token-goat-hook-chunk-K33JMLL7.mjs";
14
-
15
- // src/hook_lib.ts
16
- init_define_import_meta_env();
5
+ } from "./token-goat-hook-chunk-QD2DX2U7.mjs";
6
+ import "./token-goat-hook-chunk-HXHFLKEL.mjs";
7
+ import "./token-goat-hook-chunk-ZT47M3IA.mjs";
8
+ import "./token-goat-hook-chunk-UWV4MTYI.mjs";
9
+ import "./token-goat-hook-chunk-E6AIPKNF.mjs";
10
+ import "./token-goat-hook-chunk-BUOCULAM.mjs";
11
+ import "./token-goat-hook-chunk-RFRLWOQH.mjs";
17
12
  export {
18
13
  relayInProcess
19
14
  };
@@ -2,19 +2,16 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  run
5
- } from "./token-goat-chunk-RD6O3PJU.mjs";
6
- import "./token-goat-chunk-N53GXI2Z.mjs";
7
- import "./token-goat-chunk-O7TGKV5I.mjs";
8
- import "./token-goat-chunk-X5OPORR4.mjs";
5
+ } from "./token-goat-chunk-RPOXYJWK.mjs";
6
+ import "./token-goat-chunk-FN6WLFIX.mjs";
7
+ import "./token-goat-chunk-OHQ7RBLL.mjs";
8
+ import "./token-goat-chunk-TDYTBCT4.mjs";
9
9
  import {
10
10
  installEpipeGuard
11
- } from "./token-goat-chunk-5EXIMDHA.mjs";
12
- import "./token-goat-chunk-3KW5C2KQ.mjs";
13
- import {
14
- init_define_import_meta_env
15
- } from "./token-goat-chunk-3UOG7PSZ.mjs";
11
+ } from "./token-goat-chunk-WFRR2DBG.mjs";
12
+ import "./token-goat-chunk-AO2QD2AG.mjs";
13
+ import "./token-goat-chunk-AEX54RUZ.mjs";
16
14
 
17
15
  // src/main.ts
18
- init_define_import_meta_env();
19
16
  installEpipeGuard();
20
17
  void run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-goat",
3
- "version": "2.6.32",
3
+ "version": "2.6.33",
4
4
  "description": "Surgical token-reduction companion for Claude Code and other AI coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/token-goat.mjs",
@@ -57,8 +57,8 @@
57
57
  "node": ">=22.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "better-sqlite3": "^11.3.0",
61
- "commander": "^12.1.0",
60
+ "better-sqlite3": "^12.11.1",
61
+ "commander": "^15.0.0",
62
62
  "csv-parse": "^7.0.1",
63
63
  "js-yaml": "^5.2.1",
64
64
  "jsonc-parser": "^3.3.1",
@@ -67,15 +67,15 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@eslint/js": "^10.0.1",
70
- "@types/better-sqlite3": "^7.6.11",
71
- "@types/node": "^22.0.0",
70
+ "@types/better-sqlite3": "^9.6.0",
71
+ "@types/node": "^26.2.0",
72
72
  "esbuild": "^0.28.2",
73
73
  "eslint": "^10.5.0",
74
74
  "html-to-text": "^10.0.0",
75
75
  "lefthook": "^2.1.10",
76
76
  "tsx": "^4.19.0",
77
77
  "typescript": "^6.0.3",
78
- "typescript-eslint": "^8.62.0",
78
+ "typescript-eslint": "^8.67.0",
79
79
  "vitest": "^4.1.10"
80
80
  },
81
81
  "optionalDependencies": {
@@ -88,39 +88,19 @@
88
88
  "puppeteer-core": "^25.8.0",
89
89
  "sharp": "^0.35.3",
90
90
  "sqlite-vec": "^0.1.9",
91
- "tesseract.js": "^6.0.1",
92
- "tree-sitter": "^0.22.4",
93
- "tree-sitter-c": "^0.23.0",
91
+ "tesseract.js": "^7.0.0",
92
+ "tree-sitter": "^0.25.1",
93
+ "tree-sitter-c": "^0.24.1",
94
94
  "tree-sitter-cpp": "^0.23.4",
95
- "tree-sitter-go": "^0.23.0",
95
+ "tree-sitter-go": "^0.25.0",
96
96
  "tree-sitter-java": "^0.23.0",
97
- "tree-sitter-javascript": "^0.23.1",
98
- "tree-sitter-python": "^0.23.6",
97
+ "tree-sitter-javascript": "^0.25.0",
98
+ "tree-sitter-python": "^0.25.0",
99
99
  "tree-sitter-ruby": "^0.23.0",
100
- "tree-sitter-rust": "^0.23.0",
100
+ "tree-sitter-rust": "^0.24.0",
101
101
  "tree-sitter-typescript": "^0.23.2",
102
102
  "typescript": "^6.0.3"
103
103
  },
104
- "allowScripts": {
105
- "esbuild@0.24.2": true,
106
- "esbuild@0.28.1": true,
107
- "sharp@0.32.6": true,
108
- "sharp@0.33.5": true,
109
- "better-sqlite3@11.10.0": true,
110
- "lefthook@2.1.10": true,
111
- "protobufjs@6.11.6": true,
112
- "tesseract.js@6.0.1": true,
113
- "tree-sitter@0.22.4": true,
114
- "tree-sitter-c@0.23.6": true,
115
- "tree-sitter-cpp@0.23.4": true,
116
- "tree-sitter-go@0.23.4": true,
117
- "tree-sitter-java@0.23.5": true,
118
- "tree-sitter-javascript@0.23.1": true,
119
- "tree-sitter-python@0.23.6": true,
120
- "tree-sitter-ruby@0.23.1": true,
121
- "tree-sitter-rust@0.23.3": true,
122
- "tree-sitter-typescript@0.23.2": true
123
- },
124
104
  "overrides": {
125
105
  "protobufjs": "^8.7.2",
126
106
  "deepmerge-ts": "^8.0.1",
@@ -1,63 +0,0 @@
1
- import { createRequire as __cjsRequire } from 'node:module';
2
- const require = __cjsRequire(import.meta.url);
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
- }) : x)(function(x) {
12
- if (typeof require !== "undefined") return require.apply(this, arguments);
13
- throw Error('Dynamic require of "' + x + '" is not supported');
14
- });
15
- var __esm = (fn, res, err) => function __init() {
16
- if (err) throw err[0];
17
- try {
18
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
19
- } catch (e) {
20
- throw err = [e], e;
21
- }
22
- };
23
- var __commonJS = (cb, mod) => function __require2() {
24
- try {
25
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
- } catch (e) {
27
- throw mod = 0, e;
28
- }
29
- };
30
- var __export = (target, all) => {
31
- for (var name in all)
32
- __defProp(target, name, { get: all[name], enumerable: true });
33
- };
34
- var __copyProps = (to, from, except, desc) => {
35
- if (from && typeof from === "object" || typeof from === "function") {
36
- for (let key of __getOwnPropNames(from))
37
- if (!__hasOwnProp.call(to, key) && key !== except)
38
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
39
- }
40
- return to;
41
- };
42
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
43
- // If the importer is in node compatibility mode or this is not an ESM
44
- // file that has been converted to a CommonJS file using a Babel-
45
- // compatible transform (i.e. "__esModule" has not been set), then set
46
- // "default" to the CommonJS "module.exports" for node compatibility.
47
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
48
- mod
49
- ));
50
-
51
- // <define:import.meta.env>
52
- var init_define_import_meta_env = __esm({
53
- "<define:import.meta.env>"() {
54
- }
55
- });
56
-
57
- export {
58
- __require,
59
- __commonJS,
60
- __export,
61
- __toESM,
62
- init_define_import_meta_env
63
- };
@@ -1,23 +0,0 @@
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-hook-chunk-DJZGX27J.mjs";
8
- import "./token-goat-hook-chunk-VHZECEQD.mjs";
9
- import {
10
- MAX_STDIN_BYTES,
11
- readStdinJson
12
- } from "./token-goat-hook-chunk-LFYT4DLB.mjs";
13
- import "./token-goat-hook-chunk-WBTHUYJP.mjs";
14
- import "./token-goat-hook-chunk-DHW6SRHR.mjs";
15
- import "./token-goat-hook-chunk-J2ZK2FYW.mjs";
16
- import "./token-goat-hook-chunk-K33JMLL7.mjs";
17
- export {
18
- MAX_STDIN_BYTES,
19
- buildEvent,
20
- readStdinJson,
21
- relay,
22
- relayInProcess
23
- };
@@ -1,63 +0,0 @@
1
- import { createRequire as __cjsRequire } from 'node:module';
2
- const require = __cjsRequire(import.meta.url);
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
- }) : x)(function(x) {
12
- if (typeof require !== "undefined") return require.apply(this, arguments);
13
- throw Error('Dynamic require of "' + x + '" is not supported');
14
- });
15
- var __esm = (fn, res, err) => function __init() {
16
- if (err) throw err[0];
17
- try {
18
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
19
- } catch (e) {
20
- throw err = [e], e;
21
- }
22
- };
23
- var __commonJS = (cb, mod) => function __require2() {
24
- try {
25
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
- } catch (e) {
27
- throw mod = 0, e;
28
- }
29
- };
30
- var __export = (target, all) => {
31
- for (var name in all)
32
- __defProp(target, name, { get: all[name], enumerable: true });
33
- };
34
- var __copyProps = (to, from, except, desc) => {
35
- if (from && typeof from === "object" || typeof from === "function") {
36
- for (let key of __getOwnPropNames(from))
37
- if (!__hasOwnProp.call(to, key) && key !== except)
38
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
39
- }
40
- return to;
41
- };
42
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
43
- // If the importer is in node compatibility mode or this is not an ESM
44
- // file that has been converted to a CommonJS file using a Babel-
45
- // compatible transform (i.e. "__esModule" has not been set), then set
46
- // "default" to the CommonJS "module.exports" for node compatibility.
47
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
48
- mod
49
- ));
50
-
51
- // <define:import.meta.env>
52
- var init_define_import_meta_env = __esm({
53
- "<define:import.meta.env>"() {
54
- }
55
- });
56
-
57
- export {
58
- __require,
59
- __commonJS,
60
- __export,
61
- __toESM,
62
- init_define_import_meta_env
63
- };