uniner-cli 1.0.3 → 1.0.6

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.
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ // preuninstall.js — npm lifecycle hook, runs automatically on
3
+ // `npm uninstall -g uniner-cli`.
4
+ //
5
+ // Cleans up the runtime tree (~/.uniner-cli/<version>/) and the skill file
6
+ // (~/.claude/skills/uniner-cli/SKILL.md). Preserves user scenarios under
7
+ // ~/.claude/skills/uniner-cli/scenarios/ — those represent accumulated
8
+ // knowledge and are never deleted automatically.
9
+ //
10
+ // IMPORTANT: This script MUST exit 0 in all cases, otherwise it would
11
+ // abort the user's `npm uninstall`. Errors are swallowed silently.
12
+ //
13
+ // The manual `uniner-cli-uninstall` command is still useful for users who
14
+ // want verbose feedback, or who want to clean up before the npm package is
15
+ // gone (e.g. if the hook somehow didn't fire).
16
+
17
+ 'use strict';
18
+
19
+ const { cleanup } = require('./cleanup');
20
+
21
+ try {
22
+ cleanup({ verbose: false });
23
+ } catch (_) {
24
+ // Never fail the uninstall — swallow all errors.
25
+ }