@topy-ai/maggie 0.2.8 → 0.2.9

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 CHANGED
@@ -80,8 +80,8 @@ with `--confirm`, removes only known retired EmDash artifacts. It preserves
80
80
  Recommended upgrade sequence for the current release:
81
81
 
82
82
  ```bash
83
- npx @topy-ai/maggie@0.2.8 update --project . --force
84
- npx @topy-ai/maggie@0.2.8 cleanup --project .
83
+ npx @topy-ai/maggie@0.2.9 update --project . --force
84
+ npx @topy-ai/maggie@0.2.9 cleanup --project .
85
85
  ```
86
86
 
87
87
  ## MaggieDash lifecycle
package/bin/maggie.js CHANGED
@@ -51,6 +51,7 @@ const RETIRED_PATHS = [
51
51
  "tools/tests/test_maggie_emdash.py",
52
52
  "docs/ai-cmo-emdash",
53
53
  ];
54
+ const RETIRED_REFERENCE_FILES = ["CLAUDE.md", ".claude/CLAUDE.md", ".agents/AGENTS.md", ".agents/README.md"];
54
55
 
55
56
  function usage() {
56
57
  console.log(`Maggie Skills installer
@@ -319,15 +320,21 @@ function cleanup(args) {
319
320
  .filter(({ target }) => existsSync(target));
320
321
  if (!existing.length) {
321
322
  console.log("Maggie cleanup: no retired artifacts found");
322
- return;
323
+ } else {
324
+ for (const { relativePath, target } of existing) console.log(`${args.includes("--confirm") ? "removing" : "would remove"} ${relativePath}`);
325
+ if (args.includes("--confirm")) {
326
+ for (const { target } of existing) rmSync(target, { recursive: true, force: false });
327
+ console.log(`Maggie cleanup complete: removed ${existing.length} retired artifact(s)`);
328
+ } else {
329
+ console.log("Nothing was deleted. Rerun with --confirm to remove these retired artifacts.");
330
+ }
323
331
  }
324
- for (const { relativePath, target } of existing) console.log(`${args.includes("--confirm") ? "removing" : "would remove"} ${relativePath}`);
325
- if (!args.includes("--confirm")) {
326
- console.log("Nothing was deleted. Rerun with --confirm to remove these retired artifacts.");
327
- return;
332
+ for (const relativePath of RETIRED_REFERENCE_FILES) {
333
+ const target = join(root, relativePath);
334
+ if (existsSync(target) && /emdash|em-dash|building-emdash-site|creating-plugins/i.test(readFileSync(target, "utf8"))) {
335
+ console.log(`review required ${relativePath}: contains a retired EmDash reference`);
336
+ }
328
337
  }
329
- for (const { target } of existing) rmSync(target, { recursive: true, force: false });
330
- console.log(`Maggie cleanup complete: removed ${existing.length} retired artifact(s)`);
331
338
  console.log("Migration history under docs/de-emdash-* and marketplace/.maggie were preserved.");
332
339
  }
333
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topy-ai/maggie",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Install and manage Maggie Skills for AI coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",