mercury-agent 0.4.20 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-agent",
3
- "version": "0.4.20",
3
+ "version": "0.4.21",
4
4
  "description": "Personal AI assistant for chat platforms (WhatsApp, Slack, Discord, Telegram)",
5
5
  "license": "MIT",
6
6
  "author": "Avishai Tsabari",
@@ -40,6 +40,7 @@ const VALID_EXT_NAME_RE = /^[a-z0-9][a-z0-9-]*$/;
40
40
  function copyDirRecursive(src: string, dest: string): void {
41
41
  mkdirSync(dest, { recursive: true });
42
42
  for (const entry of readdirSync(src)) {
43
+ if (entry === "node_modules") continue;
43
44
  const srcPath = join(src, entry);
44
45
  const destPath = join(dest, entry);
45
46
  if (statSync(srcPath).isDirectory()) {
@@ -233,6 +234,7 @@ async function runAction(): Promise<void> {
233
234
  function buildAction(): void {
234
235
  // Build from package sources using a temp context — no files needed in user project
235
236
  const tmpDir = join(CWD, ".mercury", ".build-context");
237
+ rmSync(tmpDir, { recursive: true, force: true });
236
238
  mkdirSync(tmpDir, { recursive: true });
237
239
 
238
240
  try {