@tickernelz/paperclip-pro 2026.1001.0 → 2026.1001.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.
- package/dist/index.js +11 -4
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -39297,6 +39297,7 @@ Environment="PAPERCLIP_HOME=${escapeSystemd(input2.homeDir)}"
|
|
|
39297
39297
|
WorkingDirectory=%h
|
|
39298
39298
|
Restart=always
|
|
39299
39299
|
RestartSec=5
|
|
39300
|
+
KillMode=mixed
|
|
39300
39301
|
TimeoutStopSec=300
|
|
39301
39302
|
|
|
39302
39303
|
[Install]
|
|
@@ -39443,6 +39444,7 @@ var init_service_manager = __esm({
|
|
|
39443
39444
|
await this.runner("systemctl", ["--user", "start", this.serviceName]);
|
|
39444
39445
|
}
|
|
39445
39446
|
async stop() {
|
|
39447
|
+
await this.ensureCurrent();
|
|
39446
39448
|
await this.runner("systemctl", ["--user", "stop", this.serviceName]);
|
|
39447
39449
|
}
|
|
39448
39450
|
async restart() {
|
|
@@ -61927,15 +61929,20 @@ async function uninstallCommand(dependencies = {}) {
|
|
|
61927
61929
|
);
|
|
61928
61930
|
}
|
|
61929
61931
|
}
|
|
61930
|
-
if (detection.supported) {
|
|
61931
|
-
const status = await detection.manager.status();
|
|
61932
|
-
if (status.installed || status.active) await detection.manager.uninstall();
|
|
61933
|
-
}
|
|
61934
61932
|
const paths = resolveInstallStorePaths();
|
|
61935
61933
|
const hadStore = fs31.existsSync(paths.cliRoot);
|
|
61936
61934
|
if (hadStore) assertManagedInstallStore(paths);
|
|
61937
61935
|
const shimRemoved = await withInstallStoreLock(async () => {
|
|
61938
61936
|
if (hadStore) assertManagedInstallStore(paths);
|
|
61937
|
+
try {
|
|
61938
|
+
if (detection.supported) {
|
|
61939
|
+
const status = await detection.manager.status();
|
|
61940
|
+
if (status.installed || status.active) await detection.manager.uninstall();
|
|
61941
|
+
}
|
|
61942
|
+
} catch (error) {
|
|
61943
|
+
if (!hadStore) fs31.rmSync(paths.cliRoot, { recursive: true, force: true });
|
|
61944
|
+
throw error;
|
|
61945
|
+
}
|
|
61939
61946
|
const removed = removeManagedShim(paths);
|
|
61940
61947
|
const home = process.env.HOME;
|
|
61941
61948
|
for (const rcFile of home ? [path46.join(home, ".bashrc"), path46.join(home, ".zshrc")] : []) {
|