goosetools-worker 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/worker/service.js +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goosetools-worker",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "The Goose Tools carousel worker — your computer drafts and renders carousel slides for goosetools.com using your own Claude account.",
5
5
  "repository": {
6
6
  "type": "git",
package/worker/service.js CHANGED
@@ -217,11 +217,20 @@ export function install({ url, token, root }) {
217
217
  }
218
218
  }
219
219
 
220
+ // Removes THIS worker, not the whole ~/.goosetools directory. It used to take
221
+ // the directory, which was harmless while everything in there was either this
222
+ // worker's or re-derivable from the server — and stopped being harmless when
223
+ // the Overlay Factory started keeping its puzzle library, learned looks and
224
+ // used-card record in ~/.goosetools/overlay. Nothing else has a copy of those,
225
+ // and `npx goosetools uninstall` runs this. The shared token file stays: the
226
+ // other workers are still using it.
220
227
  export function uninstall() {
221
228
  if (process.platform === "darwin") macUninstall();
222
229
  else if (process.platform === "win32") winUninstall();
223
- rmSync(GOOSE_DIR, { recursive: true, force: true });
224
- console.log("✓ Background worker removed. This computer is disconnected from Goose Tools.");
230
+ rmSync(APP_PREFIX, { recursive: true, force: true });
231
+ rmSync(join(GOOSE_DIR, "worker.log"), { force: true });
232
+ rmSync(join(GOOSE_DIR, "worker.err.log"), { force: true });
233
+ console.log("✓ Carousel worker removed. This computer no longer makes carousels.");
225
234
  }
226
235
 
227
236
  // ── update ───────────────────────────────────────────────────────────────────