agentcache 0.4.1 → 0.5.0-beta.1

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.
@@ -1,281 +0,0 @@
1
- import {
2
- getClaudeTranscriptsDir,
3
- getContinueSessionsDir
4
- } from "./chunk-T4COG3XD.js";
5
- import {
6
- __export
7
- } from "./chunk-KFQGP6VL.js";
8
-
9
- // src/utils/transcript.ts
10
- import { readdirSync, statSync, existsSync } from "fs";
11
- import { join } from "path";
12
- import { homedir } from "os";
13
-
14
- // src/utils/transcript-parsers/claude-jsonl.ts
15
- var claude_jsonl_exports = {};
16
- __export(claude_jsonl_exports, {
17
- canParse: () => canParse,
18
- parse: () => parse
19
- });
20
- import { readFileSync } from "fs";
21
- function canParse(path) {
22
- return path.endsWith(".jsonl");
23
- }
24
- function parse(path) {
25
- const content = readFileSync(path, "utf-8");
26
- const events = [];
27
- for (const line of content.split("\n")) {
28
- if (!line.trim()) continue;
29
- try {
30
- const obj = JSON.parse(line);
31
- if (obj.type === "user" && obj.message?.content) {
32
- events.push({
33
- type: "message",
34
- role: "user",
35
- content: typeof obj.message.content === "string" ? obj.message.content : JSON.stringify(obj.message.content)
36
- });
37
- } else if (obj.type === "assistant" && obj.message?.content) {
38
- const blocks = Array.isArray(obj.message.content) ? obj.message.content : [{ type: "text", text: obj.message.content }];
39
- for (const block of blocks) {
40
- if (block.type === "text" && block.text) {
41
- events.push({ type: "message", role: "assistant", content: block.text });
42
- } else if (block.type === "tool_use") {
43
- events.push({
44
- type: "tool_use",
45
- tool_name: block.name,
46
- tool_input: block.input
47
- });
48
- }
49
- }
50
- }
51
- } catch {
52
- continue;
53
- }
54
- }
55
- return events;
56
- }
57
-
58
- // src/utils/transcript-parsers/continue-json.ts
59
- var continue_json_exports = {};
60
- __export(continue_json_exports, {
61
- canParse: () => canParse2,
62
- parse: () => parse2
63
- });
64
- import { readFileSync as readFileSync2 } from "fs";
65
- function canParse2(path) {
66
- if (!path.endsWith(".json")) return false;
67
- try {
68
- const content = readFileSync2(path, "utf-8");
69
- const parsed = JSON.parse(content);
70
- return parsed.history && Array.isArray(parsed.history);
71
- } catch {
72
- return false;
73
- }
74
- }
75
- function parse2(path) {
76
- const content = readFileSync2(path, "utf-8");
77
- const session = JSON.parse(content);
78
- const events = [];
79
- if (!session.history || !Array.isArray(session.history)) return events;
80
- for (const entry of session.history) {
81
- const msg = entry.message;
82
- if (!msg) continue;
83
- const role = msg.role === "user" ? "user" : msg.role === "assistant" ? "assistant" : null;
84
- if (!role) continue;
85
- let text = "";
86
- if (typeof msg.content === "string") {
87
- text = msg.content;
88
- } else if (Array.isArray(msg.content)) {
89
- text = msg.content.filter((b) => b.type === "text" && b.text).map((b) => b.text).join("\n");
90
- }
91
- if (text) {
92
- events.push({ type: "message", role, content: text });
93
- }
94
- }
95
- return events;
96
- }
97
-
98
- // src/utils/transcript-parsers/codex-jsonl.ts
99
- var codex_jsonl_exports = {};
100
- __export(codex_jsonl_exports, {
101
- canParse: () => canParse3,
102
- parse: () => parse3
103
- });
104
- import { readFileSync as readFileSync3 } from "fs";
105
- function canParse3(path) {
106
- if (!path.endsWith(".jsonl")) return false;
107
- return path.includes(".codex/sessions/");
108
- }
109
- function parse3(path) {
110
- const content = readFileSync3(path, "utf-8");
111
- const events = [];
112
- for (const line of content.split("\n")) {
113
- if (!line.trim()) continue;
114
- try {
115
- const obj = JSON.parse(line);
116
- if (obj.type === "response_item" && obj.payload) {
117
- const p = obj.payload;
118
- if (p.role === "developer" && Array.isArray(p.content)) {
119
- const text = p.content.filter((c) => c.type === "input_text").map((c) => c.text).join("\n");
120
- if (text) events.push({ type: "message", role: "user", content: text });
121
- } else if (p.role === "assistant" && Array.isArray(p.content)) {
122
- for (const block of p.content) {
123
- if (block.type === "output_text" && block.text) {
124
- events.push({ type: "message", role: "assistant", content: block.text });
125
- } else if (block.type === "function_call") {
126
- events.push({
127
- type: "tool_use",
128
- tool_name: block.name,
129
- tool_input: { arguments: block.arguments }
130
- });
131
- }
132
- }
133
- }
134
- }
135
- } catch {
136
- continue;
137
- }
138
- }
139
- return events;
140
- }
141
-
142
- // src/utils/transcript-parsers/roo-code-json.ts
143
- var roo_code_json_exports = {};
144
- __export(roo_code_json_exports, {
145
- canParse: () => canParse4,
146
- parse: () => parse4
147
- });
148
- import { readFileSync as readFileSync4 } from "fs";
149
- function canParse4(path) {
150
- return path.includes("roo-cline/tasks/") && path.endsWith("api_conversation_history.json");
151
- }
152
- function parse4(path) {
153
- const content = readFileSync4(path, "utf-8");
154
- const events = [];
155
- try {
156
- const messages = JSON.parse(content);
157
- if (!Array.isArray(messages)) return [];
158
- for (const msg of messages) {
159
- if (msg.role === "user" && Array.isArray(msg.content)) {
160
- const text = msg.content.filter((c) => c.type === "text").map((c) => c.text).join("\n");
161
- if (text) events.push({ type: "message", role: "user", content: text });
162
- } else if (msg.role === "assistant" && typeof msg.content === "string") {
163
- events.push({ type: "message", role: "assistant", content: msg.content });
164
- } else if (msg.role === "assistant" && Array.isArray(msg.content)) {
165
- for (const block of msg.content) {
166
- if (block.type === "text" && block.text) {
167
- events.push({ type: "message", role: "assistant", content: block.text });
168
- } else if (block.type === "tool_use") {
169
- events.push({
170
- type: "tool_use",
171
- tool_name: block.name,
172
- tool_input: block.input
173
- });
174
- }
175
- }
176
- }
177
- }
178
- } catch {
179
- return [];
180
- }
181
- return events;
182
- }
183
-
184
- // src/utils/transcript-parsers/index.ts
185
- var parsers = [codex_jsonl_exports, roo_code_json_exports, claude_jsonl_exports, continue_json_exports];
186
- function parseTranscriptAuto(path) {
187
- for (const parser of parsers) {
188
- if (parser.canParse(path)) return parser.parse(path);
189
- }
190
- return [];
191
- }
192
-
193
- // src/utils/transcript.ts
194
- function parseTranscript(path) {
195
- return parseTranscriptAuto(path);
196
- }
197
- function findAllClaudeTranscripts() {
198
- const baseDir = getClaudeTranscriptsDir();
199
- if (!existsSync(baseDir)) return [];
200
- const transcripts = [];
201
- try {
202
- const dirs = readdirSync(baseDir).map((d) => join(baseDir, d)).filter((d) => statSync(d).isDirectory());
203
- for (const dir of dirs) {
204
- try {
205
- const files = readdirSync(dir).filter((f) => f.endsWith(".jsonl"));
206
- for (const file of files) {
207
- const fullPath = join(dir, file);
208
- if (statSync(fullPath).size > 100) {
209
- transcripts.push(fullPath);
210
- }
211
- }
212
- } catch {
213
- continue;
214
- }
215
- }
216
- } catch {
217
- }
218
- return transcripts;
219
- }
220
- function findAllContinueTranscripts() {
221
- const dir = getContinueSessionsDir();
222
- if (!existsSync(dir)) return [];
223
- try {
224
- return readdirSync(dir).filter((f) => f.endsWith(".json") && f !== "sessions.json").map((f) => join(dir, f)).filter((f) => statSync(f).size > 100);
225
- } catch {
226
- return [];
227
- }
228
- }
229
- function findAllCodexTranscripts() {
230
- const baseDir = join(homedir(), ".codex", "sessions");
231
- if (!existsSync(baseDir)) return [];
232
- const transcripts = [];
233
- function walkDir(dir) {
234
- try {
235
- for (const entry of readdirSync(dir)) {
236
- const full = join(dir, entry);
237
- const stat = statSync(full);
238
- if (stat.isDirectory()) {
239
- walkDir(full);
240
- } else if (entry.endsWith(".jsonl") && stat.size > 100) {
241
- transcripts.push(full);
242
- }
243
- }
244
- } catch {
245
- }
246
- }
247
- walkDir(baseDir);
248
- return transcripts;
249
- }
250
- function findAllRooCodeTranscripts() {
251
- const possibleDirs = [
252
- join(homedir(), "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "tasks"),
253
- join(homedir(), ".config", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "tasks")
254
- ];
255
- const transcripts = [];
256
- for (const baseDir of possibleDirs) {
257
- if (!existsSync(baseDir)) continue;
258
- try {
259
- for (const taskDir of readdirSync(baseDir)) {
260
- const historyPath = join(baseDir, taskDir, "api_conversation_history.json");
261
- if (existsSync(historyPath) && statSync(historyPath).size > 100) {
262
- transcripts.push(historyPath);
263
- }
264
- }
265
- } catch {
266
- }
267
- }
268
- return transcripts;
269
- }
270
- function getGooseDbPath() {
271
- return join(homedir(), ".local", "share", "goose", "sessions", "sessions.db");
272
- }
273
-
274
- export {
275
- parseTranscript,
276
- findAllClaudeTranscripts,
277
- findAllContinueTranscripts,
278
- findAllCodexTranscripts,
279
- findAllRooCodeTranscripts,
280
- getGooseDbPath
281
- };
@@ -1,77 +0,0 @@
1
- import {
2
- getDataDir
3
- } from "./chunk-T4COG3XD.js";
4
-
5
- // src/utils/background-compile.ts
6
- import { spawn } from "child_process";
7
- import { existsSync, writeFileSync, readFileSync, unlinkSync, openSync, closeSync, constants } from "fs";
8
- import { join } from "path";
9
- var LOCK_FILE = "compile-all.lock";
10
- var STALE_THRESHOLD_MS = 4 * 60 * 60 * 1e3;
11
- function getLockPath() {
12
- return join(getDataDir(), LOCK_FILE);
13
- }
14
- function isLocked() {
15
- const lockPath = getLockPath();
16
- if (!existsSync(lockPath)) return false;
17
- try {
18
- const content = readFileSync(lockPath, "utf-8");
19
- const { pid, startedAt } = JSON.parse(content);
20
- if (Date.now() - startedAt > STALE_THRESHOLD_MS) {
21
- unlinkSync(lockPath);
22
- return false;
23
- }
24
- try {
25
- process.kill(pid, 0);
26
- return true;
27
- } catch {
28
- unlinkSync(lockPath);
29
- return false;
30
- }
31
- } catch {
32
- unlinkSync(lockPath);
33
- return false;
34
- }
35
- }
36
- function spawnCompileAll() {
37
- if (isLocked()) return false;
38
- const agentcacheBin = process.argv[1]?.replace(/\/dist\/.*/, "/dist/cli.js") || "agentcache";
39
- const isLinkedBinary = agentcacheBin.includes("dist/cli.js");
40
- const cmd = isLinkedBinary ? process.execPath : "agentcache";
41
- const args = isLinkedBinary ? [agentcacheBin, "compile-all"] : ["compile-all"];
42
- const child = spawn(cmd, args, {
43
- detached: true,
44
- stdio: "ignore",
45
- env: { ...process.env, AGENTCACHE_BACKGROUND: "1" }
46
- });
47
- child.unref();
48
- try {
49
- writeFileSync(getLockPath(), JSON.stringify({ pid: child.pid, startedAt: Date.now() }));
50
- } catch {
51
- }
52
- return true;
53
- }
54
- function acquireLock() {
55
- if (isLocked()) return false;
56
- try {
57
- const fd = openSync(getLockPath(), constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL);
58
- const data = JSON.stringify({ pid: process.pid, startedAt: Date.now() });
59
- writeFileSync(fd, data);
60
- closeSync(fd);
61
- return true;
62
- } catch {
63
- return false;
64
- }
65
- }
66
- function releaseLock() {
67
- try {
68
- unlinkSync(getLockPath());
69
- } catch {
70
- }
71
- }
72
-
73
- export {
74
- spawnCompileAll,
75
- acquireLock,
76
- releaseLock
77
- };
@@ -1,271 +0,0 @@
1
- // src/utils/ide-detector.ts
2
- import { existsSync } from "fs";
3
- import { join } from "path";
4
- import { homedir } from "os";
5
- function getRooConfigPath() {
6
- const home = homedir();
7
- if (process.platform === "darwin") {
8
- return join(home, "Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json");
9
- }
10
- if (process.platform === "win32") {
11
- return join(process.env.APPDATA || join(home, "AppData/Roaming"), "Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json");
12
- }
13
- return join(home, ".config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json");
14
- }
15
- function getWindsurfConfigPath() {
16
- const home = homedir();
17
- return join(home, ".codeium", "windsurf", "mcp_config.json");
18
- }
19
- function getContinueConfigPath() {
20
- const home = homedir();
21
- return join(home, ".continue", "mcpServers", "agentcache.json");
22
- }
23
- function getCodexConfigPath() {
24
- const home = homedir();
25
- return join(home, ".codex", "config.toml");
26
- }
27
- function detectInstalledIdes() {
28
- const home = homedir();
29
- return [
30
- {
31
- name: "Claude Code",
32
- detected: existsSync(join(home, ".claude")),
33
- mcpConfigPath: join(home, ".claude.json"),
34
- mcpConfigFormat: "claude-settings"
35
- },
36
- {
37
- name: "Cursor",
38
- detected: existsSync(join(home, ".cursor")),
39
- mcpConfigPath: join(home, ".cursor", "mcp.json"),
40
- mcpConfigFormat: "mcp-json"
41
- },
42
- {
43
- name: "Roo Code",
44
- detected: existsSync(getRooConfigPath()),
45
- mcpConfigPath: getRooConfigPath(),
46
- mcpConfigFormat: "mcp-json"
47
- },
48
- {
49
- name: "Windsurf",
50
- detected: existsSync(join(home, ".codeium", "windsurf")) || existsSync(join(home, ".windsurf")),
51
- mcpConfigPath: getWindsurfConfigPath(),
52
- mcpConfigFormat: "mcp-json"
53
- },
54
- {
55
- name: "Continue",
56
- detected: existsSync(join(home, ".continue")),
57
- mcpConfigPath: getContinueConfigPath(),
58
- mcpConfigFormat: "continue-dir"
59
- },
60
- {
61
- name: "Codex",
62
- detected: existsSync(join(home, ".codex")),
63
- mcpConfigPath: getCodexConfigPath(),
64
- mcpConfigFormat: "codex-toml"
65
- }
66
- ];
67
- }
68
-
69
- // src/utils/ide-registrar.ts
70
- import { existsSync as existsSync2, mkdirSync, readFileSync, writeFileSync, appendFileSync } from "fs";
71
- import { join as join2, dirname } from "path";
72
- import { homedir as homedir2 } from "os";
73
- import { execSync } from "child_process";
74
- function findNodeBinary() {
75
- try {
76
- return execSync("which node", { encoding: "utf-8" }).trim();
77
- } catch {
78
- return "node";
79
- }
80
- }
81
- function findAgentcacheScript() {
82
- try {
83
- const binPath = execSync("which agentcache", { encoding: "utf-8" }).trim();
84
- return binPath;
85
- } catch {
86
- return join2(dirname(dirname(__dirname)), "dist", "cli.js");
87
- }
88
- }
89
- function isVscodeExtensionIde(ide) {
90
- return ide.name === "Roo Code" || ide.name === "Continue";
91
- }
92
- var ALL_TOOLS = [
93
- "inject_context",
94
- "compile_submit",
95
- "compile_cluster",
96
- "compile_extract",
97
- "enforce",
98
- "save_observation",
99
- "get_knowledge",
100
- "deprecate_knowledge"
101
- ];
102
- function registerMcpServer(ide) {
103
- if (!ide.detected) return false;
104
- if (ide.mcpConfigFormat === "claude-settings") {
105
- return registerClaudeCode();
106
- }
107
- if (ide.mcpConfigFormat === "mcp-json") {
108
- return registerMcpJson(ide);
109
- }
110
- if (ide.mcpConfigFormat === "continue-dir") {
111
- return registerContinue(ide);
112
- }
113
- if (ide.mcpConfigFormat === "codex-toml") {
114
- return registerCodex(ide);
115
- }
116
- return false;
117
- }
118
- function registerClaudeCode() {
119
- const claudeJsonPath = join2(homedir2(), ".claude.json");
120
- let config = {};
121
- if (existsSync2(claudeJsonPath)) {
122
- try {
123
- config = JSON.parse(readFileSync(claudeJsonPath, "utf-8"));
124
- } catch {
125
- return false;
126
- }
127
- }
128
- if (!config.mcpServers) config.mcpServers = {};
129
- let serverRegistered = false;
130
- if (!config.mcpServers.agentcache) {
131
- config.mcpServers.agentcache = {
132
- type: "stdio",
133
- command: "agentcache",
134
- args: ["serve"],
135
- env: {}
136
- };
137
- writeFileSync(claudeJsonPath, JSON.stringify(config, null, 2));
138
- serverRegistered = true;
139
- }
140
- const settingsPath = join2(homedir2(), ".claude", "settings.json");
141
- if (existsSync2(join2(homedir2(), ".claude"))) {
142
- let settings = {};
143
- if (existsSync2(settingsPath)) {
144
- try {
145
- settings = JSON.parse(readFileSync(settingsPath, "utf-8"));
146
- } catch {
147
- return false;
148
- }
149
- }
150
- if (!settings.permissions) settings.permissions = {};
151
- if (!settings.permissions.allow) settings.permissions.allow = [];
152
- let allowList = settings.permissions.allow;
153
- allowList = allowList.filter((p) => !p.startsWith("mcp__agentcache__loop_") && !p.startsWith("mcp__agentcache__agentcache_"));
154
- settings.permissions.allow = allowList;
155
- const mcpPerms = ALL_TOOLS.map((t) => `mcp__agentcache__${t}`);
156
- for (const perm of mcpPerms) {
157
- if (!allowList.includes(perm)) {
158
- allowList.push(perm);
159
- }
160
- }
161
- writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
162
- }
163
- return serverRegistered;
164
- }
165
- function registerMcpJson(ide) {
166
- let config = {};
167
- if (existsSync2(ide.mcpConfigPath)) {
168
- try {
169
- config = JSON.parse(readFileSync(ide.mcpConfigPath, "utf-8"));
170
- } catch {
171
- return false;
172
- }
173
- }
174
- if (!config.mcpServers) config.mcpServers = {};
175
- const existing = config.mcpServers.agentcache;
176
- if (isVscodeExtensionIde(ide)) {
177
- const nodeBin = findNodeBinary();
178
- const script = findAgentcacheScript();
179
- config.mcpServers.agentcache = {
180
- command: nodeBin,
181
- args: [script, "serve"],
182
- alwaysAllow: ALL_TOOLS,
183
- disabled: false
184
- };
185
- } else {
186
- config.mcpServers.agentcache = {
187
- command: "agentcache",
188
- args: ["serve"],
189
- alwaysAllow: ALL_TOOLS
190
- };
191
- }
192
- mkdirSync(dirname(ide.mcpConfigPath), { recursive: true });
193
- writeFileSync(ide.mcpConfigPath, JSON.stringify(config, null, 2));
194
- return true;
195
- }
196
- function registerContinue(ide) {
197
- const configPath = ide.mcpConfigPath;
198
- const nodeBin = findNodeBinary();
199
- const script = findAgentcacheScript();
200
- const config = {
201
- mcpServers: {
202
- agentcache: {
203
- command: nodeBin,
204
- args: [script, "serve"],
205
- alwaysAllow: ALL_TOOLS
206
- }
207
- }
208
- };
209
- mkdirSync(dirname(configPath), { recursive: true });
210
- writeFileSync(configPath, JSON.stringify(config, null, 2));
211
- return true;
212
- }
213
- function registerCodex(ide) {
214
- const configPath = ide.mcpConfigPath;
215
- if (existsSync2(configPath)) {
216
- const content = readFileSync(configPath, "utf-8");
217
- if (content.includes("[mcp_servers.agentcache]")) return false;
218
- }
219
- const tomlBlock = `
220
- [mcp_servers.agentcache]
221
- command = "agentcache"
222
- args = ["serve"]
223
- default_tools_approval_mode = "auto"
224
- `;
225
- mkdirSync(dirname(configPath), { recursive: true });
226
- if (existsSync2(configPath)) {
227
- appendFileSync(configPath, tomlBlock);
228
- } else {
229
- writeFileSync(configPath, tomlBlock.trimStart());
230
- }
231
- return true;
232
- }
233
- function registerClaudeHooks() {
234
- const settingsPath = join2(homedir2(), ".claude", "settings.json");
235
- if (!existsSync2(join2(homedir2(), ".claude"))) return false;
236
- let settings = {};
237
- if (existsSync2(settingsPath)) {
238
- try {
239
- settings = JSON.parse(readFileSync(settingsPath, "utf-8"));
240
- } catch {
241
- return false;
242
- }
243
- }
244
- if (!settings.hooks) settings.hooks = {};
245
- const hooks = settings.hooks;
246
- const agentcacheHooks = {
247
- Stop: [{ matcher: "", hooks: [{ type: "command", command: "agentcache compile-session" }] }],
248
- SessionStart: [{ matcher: "", hooks: [{ type: "command", command: "agentcache discover" }] }],
249
- PreToolUse: [{ matcher: "", hooks: [{ type: "command", command: "agentcache enforce" }] }]
250
- };
251
- let registered = false;
252
- for (const [event, hookConfig] of Object.entries(agentcacheHooks)) {
253
- if (!hooks[event]) hooks[event] = [];
254
- const existing = hooks[event];
255
- const hasAgentcache = existing.some((h) => h.hooks?.some((hh) => hh.command?.includes("agentcache")));
256
- if (!hasAgentcache) {
257
- hooks[event].push(...hookConfig);
258
- registered = true;
259
- }
260
- }
261
- if (registered) {
262
- writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
263
- }
264
- return registered;
265
- }
266
-
267
- export {
268
- detectInstalledIdes,
269
- registerMcpServer,
270
- registerClaudeHooks
271
- };
@@ -1,33 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
6
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
7
- }) : x)(function(x) {
8
- if (typeof require !== "undefined") return require.apply(this, arguments);
9
- throw Error('Dynamic require of "' + x + '" is not supported');
10
- });
11
- var __esm = (fn, res) => function __init() {
12
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
- };
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
-
28
- export {
29
- __require,
30
- __esm,
31
- __export,
32
- __toCommonJS
33
- };