robot-resources 1.15.1 → 1.15.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/lib/uninstall.js +6 -2
  2. package/package.json +1 -1
package/lib/uninstall.js CHANGED
@@ -6,7 +6,7 @@ import { removeShellLine } from './shell-config.js';
6
6
  import { detectVenv } from './venv-detect.js';
7
7
  import { spawnSync } from 'node:child_process';
8
8
  import { removePersistedNodeOptions } from './windows-env.js';
9
- import { detectEntryFile, hasSourceMarker, removeSourceMarker } from './source-edit-attach.js';
9
+ import { findAgentSourceFile, hasSourceMarker, removeSourceMarker } from './source-edit-attach.js';
10
10
 
11
11
  /**
12
12
  * Single source of truth for `npx robot-resources --uninstall`.
@@ -123,7 +123,11 @@ export function runUninstall({ purge = false } = {}) {
123
123
  // not present. Runs against cwd, so users who --uninstall from a
124
124
  // different repo won't accidentally wipe the wrong file.
125
125
  try {
126
- const detection = detectEntryFile();
126
+ // Phase 11.1: detector renamed to findAgentSourceFile, returns
127
+ // { winner, candidates, ... }. Adapt to the same `path` field name
128
+ // so the rest of the block reads naturally.
129
+ const scan = findAgentSourceFile();
130
+ const detection = { path: scan.winner };
127
131
  if (detection.path && hasSourceMarker(detection.path)) {
128
132
  const r = removeSourceMarker(detection.path, { restoreFromBackup: !!purge });
129
133
  if (r.ok && (r.removed || r.restored)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robot-resources",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "Robot Resources — AI agent tools. One command to install everything.",
5
5
  "type": "module",
6
6
  "bin": {