lycheedev 2.5.0 → 2.5.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/bin/lycheedev.mjs CHANGED
@@ -43,14 +43,50 @@ export function launch(root, args, run = spawnSync) {
43
43
  }
44
44
 
45
45
  if (process.argv[1] && realpathSync(resolve(process.argv[1])) === fileURLToPath(import.meta.url)) {
46
+ let activeArgs = process.argv.slice(2);
46
47
  try {
47
48
  const [major, minor] = process.versions.node.split('.').map(Number);
48
49
  if (major < 22 || (major === 22 && minor < 14)) throw new Error('distribution.node_version: requires Node >=22.14.0');
49
- const result = launch(resolve(dirname(fileURLToPath(import.meta.url)), '..'), process.argv.slice(2));
50
+ const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
51
+ let args = process.argv.slice(2);
52
+ // Common flags may precede the command. Normalize only those two shared
53
+ // flags; leave command admission and every other flag to the native parser.
54
+ let commandIndex = 0;
55
+ while (commandIndex < args.length) {
56
+ const flag = args[commandIndex];
57
+ if (flag === '--home' || flag === '--format') commandIndex += 2;
58
+ else if (flag.startsWith('--home=') || flag.startsWith('--format=')) commandIndex++;
59
+ else break;
60
+ }
61
+ if (args[commandIndex] === 'update') args = ['update', ...args.slice(0, commandIndex), ...args.slice(commandIndex + 1)];
62
+ activeArgs = args;
63
+ const managedUpdate = args[0] === 'update' && !args.some(arg => ['--help', '-h', '--plan', '--release'].includes(arg) || arg.startsWith('--release='));
64
+ let result;
65
+ if (managedUpdate) {
66
+ const { update } = await import('./update.mjs');
67
+ const formatIndex = args.indexOf('--format');
68
+ const format = args.find(arg => arg.startsWith('--format='))?.split('=')[1] ?? (formatIndex >= 0 ? args[formatIndex + 1] : 'text');
69
+ const forwarded = args.filter((arg, index) => arg !== '--format' && !arg.startsWith('--format=') && args[index - 1] !== '--format');
70
+ // Keep native argument validation authoritative, including output format.
71
+ if (!['json', 'jsonl', 'text'].includes(format) || args.filter(arg => arg === '--format' || arg.startsWith('--format=')).length > 1) throw Object.assign(new Error('update.invalid_format'), { exit: 2 });
72
+ result = update(root, forwarded, nativePath);
73
+ if (format === 'jsonl') {
74
+ process.stdout.write(`${JSON.stringify({ type: 'begin', schema: result.envelope.schema })}\n`);
75
+ if (result.envelope.ok) process.stdout.write(`${JSON.stringify({ type: 'record', result: result.envelope.result })}\n${JSON.stringify({ type: 'end', envelope: result.envelope })}\n`);
76
+ else process.stdout.write(`${JSON.stringify({ type: 'error', envelope: result.envelope })}\n`);
77
+ } else if (format === 'text' && result.envelope.ok) process.stdout.write(`${JSON.stringify(result.envelope.result, null, 2)}\n`);
78
+ else process.stdout.write(`${JSON.stringify(result.envelope, null, 2)}\n`);
79
+ } else result = launch(root, args);
50
80
  if (result.signal) process.kill(process.pid, result.signal);
51
81
  else process.exitCode = result.status;
52
82
  } catch (error) {
53
- process.stderr.write(`lycheedev: ${error.message}\n`);
54
- process.exitCode = 3;
83
+ const args = activeArgs;
84
+ if (args[0] === 'update' && (args.includes('json') || args.includes('--format=json') || args.includes('jsonl') || args.includes('--format=jsonl'))) {
85
+ const envelope = error.envelope ?? { schema: 'lycheedev.result.v1', ok: false, operationId: '', context: {}, result: { complete: false }, captures: [], warnings: [], error: { code: 'update.failed', message: error.message, stage: 'update', retryable: false } };
86
+ const jsonl = args.includes('jsonl') || args.includes('--format=jsonl');
87
+ if (jsonl) process.stdout.write(`${JSON.stringify({ type: 'begin', schema: envelope.schema })}\n${JSON.stringify({ type: 'error', envelope })}\n`);
88
+ else process.stdout.write(`${JSON.stringify(envelope)}\n`);
89
+ } else process.stderr.write(`lycheedev: ${error.message}\n`);
90
+ process.exitCode = error.exit || 3;
55
91
  }
56
92
  }
package/bin/update.mjs ADDED
@@ -0,0 +1,168 @@
1
+ // npm owns replacement of the CLI package. Native delivery owns target identity,
2
+ // receipts and recoverable addon/skill replacement. No native process stays alive
3
+ // while npm replaces its executable (Windows denies replacing a running image).
4
+ import { spawnSync } from 'node:child_process';
5
+ import { createHash } from 'node:crypto';
6
+ import { existsSync, lstatSync, mkdirSync, openSync, closeSync, readFileSync, writeFileSync, renameSync, rmSync, realpathSync } from 'node:fs';
7
+ import { delimiter, dirname, join, resolve } from 'node:path';
8
+
9
+ function readJSON(file) {
10
+ const info = lstatSync(file);
11
+ if (!info.isFile() || info.size > 1024 * 1024) throw new Error('update.invalid_state_file');
12
+ return JSON.parse(readFileSync(file, 'utf8'));
13
+ }
14
+
15
+ function npmEntry() {
16
+ for (const directory of [dirname(process.execPath), ...(process.env.PATH ?? '').split(delimiter)]) {
17
+ const path = join(directory, 'node_modules', 'npm', 'bin', 'npm-cli.js');
18
+ if (existsSync(path)) return path;
19
+ }
20
+ throw new Error('update.npm_missing: npm-cli.js was not found beside Node or a PATH entry');
21
+ }
22
+
23
+ function command(file, args, timeout = 600000) {
24
+ const result = spawnSync(file, args, { encoding: 'utf8', shell: false, windowsHide: true, timeout, maxBuffer: 16 * 1024 * 1024 });
25
+ if (result.error) throw result.error;
26
+ return result;
27
+ }
28
+
29
+ function nativeResult(binary, args) {
30
+ const run = command(binary, args);
31
+ let envelope;
32
+ try { envelope = JSON.parse(run.stdout); } catch { throw new Error(`update.invalid_native_result: ${run.stderr.slice(0, 2000)}`); }
33
+ if (run.status !== 0 || !envelope.ok) {
34
+ const error = new Error(envelope.error?.message ?? 'update.native_failed');
35
+ error.envelope = envelope; error.exit = run.status || 5;
36
+ throw error;
37
+ }
38
+ return envelope;
39
+ }
40
+
41
+ function frozenTargets(plan) {
42
+ if (!Array.isArray(plan?.targets) || plan.targets.length > 64) throw new Error('update.invalid_targets');
43
+ return plan.targets.map(target => {
44
+ if (!['skill', 'addon'].includes(target.component) || typeof target.path !== 'string' || !target.path) throw new Error('update.invalid_target');
45
+ return { component: target.component, path: target.path };
46
+ });
47
+ }
48
+
49
+ function takeLock(directory) {
50
+ const file = join(directory, 'lock.json');
51
+ for (let attempt = 0; attempt < 2; attempt++) {
52
+ try {
53
+ const descriptor = openSync(file, 'wx');
54
+ writeFileSync(descriptor, JSON.stringify({ pid: process.pid })); closeSync(descriptor);
55
+ return () => rmSync(file);
56
+ } catch (error) {
57
+ if (error.code !== 'EEXIST') throw error;
58
+ const owner = readJSON(file);
59
+ if (!Number.isSafeInteger(owner.pid) || owner.pid < 1) throw new Error('update.invalid_lock');
60
+ try { process.kill(owner.pid, 0); } catch (error) {
61
+ if (error.code === 'ESRCH') {
62
+ // Serialize stale reclamation separately. Two retriers must not remove
63
+ // each other's newly acquired owner file after observing one dead PID.
64
+ const reclaim = join(directory, 'reclaim.lock');
65
+ let descriptor;
66
+ try { descriptor = openSync(reclaim, 'wx'); } catch { throw new Error('update.busy: stale-lock recovery is already in progress'); }
67
+ try {
68
+ const current = readJSON(file);
69
+ if (current.pid !== owner.pid) throw new Error('update.busy: owner changed during recovery');
70
+ try { process.kill(current.pid, 0); throw new Error('update.busy'); } catch (error) {
71
+ if (error.code !== 'ESRCH') throw error;
72
+ }
73
+ rmSync(file);
74
+ } finally { closeSync(descriptor); rmSync(reclaim); }
75
+ continue;
76
+ }
77
+ }
78
+ throw new Error('update.busy: another updater owns this npm prefix');
79
+ }
80
+ }
81
+ throw new Error('update.busy');
82
+ }
83
+
84
+ export function update(root, args, nativePath) {
85
+ root = realpathSync(root);
86
+ const prefix = dirname(dirname(root));
87
+ if (root.toLowerCase() !== join(prefix, 'node_modules', 'lycheedev').toLowerCase() || !existsSync(join(prefix, 'lycheedev.cmd'))) {
88
+ throw new Error('update.global_install_required: use a global npm installation, or update --release for native payloads');
89
+ }
90
+ const npm = npmEntry();
91
+ // Validate arguments and all existing targets before downloads or npm writes.
92
+ const plan = nativeResult(nativePath(root), [...args, '--plan', '--format=json']);
93
+ const directory = join(prefix, '.lycheedev-update');
94
+ mkdirSync(directory, { recursive: true });
95
+ if (lstatSync(directory).isSymbolicLink() || realpathSync(directory).toLowerCase() !== resolve(directory).toLowerCase()) throw new Error('update.redirected_state');
96
+ const unlock = takeLock(directory);
97
+ const journal = join(directory, 'transaction.json');
98
+ const save = value => {
99
+ writeFileSync(`${journal}.next`, JSON.stringify(value));
100
+ renameSync(`${journal}.next`, journal);
101
+ };
102
+ const runNpm = flags => {
103
+ const output = command(process.execPath, [npm, ...flags]);
104
+ if (output.status !== 0) throw new Error(`update.npm_failed: ${output.stderr.slice(-4000)}`);
105
+ return output;
106
+ };
107
+ let transaction;
108
+ try {
109
+ if (existsSync(journal)) {
110
+ transaction = readJSON(journal);
111
+ if (transaction.schema !== 'lycheedev.npm-update.v1' || transaction.prefix !== prefix || JSON.stringify(transaction.args) !== JSON.stringify(args)) {
112
+ throw new Error('update.pending_conflict: retry the original update arguments before selecting other targets');
113
+ }
114
+ } else {
115
+ process.stderr.write('lycheedev: preparing the latest release in an isolated directory\n');
116
+ const packed = JSON.parse(runNpm(['pack', 'lycheedev@latest', '--ignore-scripts', '--json', '--pack-destination', directory]).stdout);
117
+ const entry = packed[0];
118
+ if (packed.length !== 1 || entry.name !== 'lycheedev' || !/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/.test(entry.version) || entry.filename !== `lycheedev-${entry.version}.tgz`) throw new Error('update.invalid_package');
119
+ transaction = { schema: 'lycheedev.npm-update.v1', prefix, args, version: entry.version, integrity: entry.integrity, targets: plan.result.targets };
120
+ save(transaction);
121
+ }
122
+ if (!/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/.test(transaction.version)) throw new Error('update.invalid_version');
123
+ const tarball = join(directory, `lycheedev-${transaction.version}.tgz`);
124
+ const tarInfo = lstatSync(tarball);
125
+ if (!tarInfo.isFile() || tarInfo.size > 512 * 1024 * 1024) throw new Error('update.package_size');
126
+ const integrity = `sha512-${createHash('sha512').update(readFileSync(tarball)).digest('base64')}`;
127
+ if (integrity !== transaction.integrity) throw new Error('update.package_integrity');
128
+ const staging = join(directory, 'staging');
129
+ runNpm(['install', '--prefix', staging, '--ignore-scripts', '--no-audit', '--no-fund', '--package-lock=false', tarball]);
130
+ const stagedRoot = join(staging, 'node_modules', 'lycheedev');
131
+ const stagedPackage = JSON.parse(readFileSync(join(stagedRoot, 'package.json'), 'utf8'));
132
+ if (stagedPackage.version !== transaction.version || stagedPackage.name !== 'lycheedev') throw new Error('update.version_mismatch');
133
+ const selected = frozenTargets({ targets: transaction.targets });
134
+ const targetFile = join(directory, 'targets.json');
135
+ writeFileSync(targetFile, JSON.stringify(selected));
136
+ // Preserve only --home from the validated original args; target discovery is
137
+ // frozen in the journal, output rendering belongs to this launcher.
138
+ const home = [];
139
+ for (let i = 1; i < args.length; i++) {
140
+ if (args[i] === '--home') home.push('--home', args[++i]);
141
+ else if (args[i].startsWith('--home=')) home.push(args[i]);
142
+ }
143
+ const nativeArgs = ['update', '--file', targetFile, ...home, '--format=json'];
144
+ nativeResult(nativePath(stagedRoot), [...nativeArgs, '--release', stagedRoot, '--plan']);
145
+ process.stderr.write(`lycheedev: installing ${transaction.version} and synchronizing ${transaction.targets.length} target(s)\n`);
146
+ runNpm(['install', '--global', '--prefix', prefix, '--ignore-scripts', '--no-audit', '--no-fund', tarball]);
147
+ const installed = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'));
148
+ if (installed.version !== transaction.version) throw new Error('update.installed_version_mismatch');
149
+ const outcome = nativeResult(nativePath(root), [...nativeArgs, '--release', root]);
150
+ outcome.result.cli = { version: transaction.version, state: 'current', prefix };
151
+ // Remove only the updater-owned staging and pinned archive after native
152
+ // verification. A failure retains the exact release and targets for retry.
153
+ // Commit success first: a cache deletion failure must not leave a journal
154
+ // pointing at a tarball which has already been removed.
155
+ rmSync(journal);
156
+ try {
157
+ if (realpathSync(staging).toLowerCase() !== resolve(staging).toLowerCase()) throw new Error('redirected staging directory');
158
+ rmSync(staging, { recursive: true, force: true });
159
+ rmSync(tarball);
160
+ rmSync(targetFile);
161
+ } catch (error) { outcome.warnings.push(`Update completed; temporary download cleanup needs attention at ${directory}: ${error.message}`); }
162
+ return { envelope: outcome, status: 0 };
163
+ } catch (error) {
164
+ const envelope = error.envelope ?? { schema: 'lycheedev.result.v1', ok: false, operationId: '', context: {}, result: { complete: false }, captures: [], warnings: [], error: { code: 'update.failed', message: error.message, stage: 'update', retryable: true } };
165
+ envelope.context.updateRecovery = journal;
166
+ return { envelope, status: error.exit || 5 };
167
+ } finally { unlock(); }
168
+ }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lycheedev",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "private": false,
5
5
  "description": "Unified native World of Warcraft development toolkit",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  local ADDON_NAME, ns = ...
2
2
 
3
- ns.Release = "2.5.0"
3
+ ns.Release = "2.5.1"
4
4
  ns.Startup = { ready = false, reason = "addon_not_loaded" }
5
5
  -- Observability handle: mirrors the addon namespace for host-side /run
6
6
  -- introspection (startup state, identity, commandFailure) on every client.
@@ -1,6 +1,6 @@
1
1
  ## Interface: 120100, 50504, 38002, 16001
2
2
  ## Title: Lychee Dev
3
- ## Version: 2.5.0
3
+ ## Version: 2.5.1
4
4
  ## SavedVariables: LycheeToolkitDB
5
5
  ## SavedVariablesPerCharacter: LycheeToolkitBridgeDB
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lycheedev
3
- description: Research WoW addon source and game data, export assets, validate addons, and investigate running clients with the Lychee Dev Toolkit. Use for any World of Warcraft investigation — addon/Lua/XML/TOC source questions, DB2/SQL/game records, CASC files and textures, hotfixes, or driving a running game client and recovering interrupted runs — even when the user just names a spell, item, addon or error without saying "toolkit".
3
+ description: Research World of Warcraft addon source, APIs and game records, export assets, validate addons, and investigate running clients with the Lychee Dev Toolkit. Use for WoW technical investigations involving Lua/XML/TOC, DB2/SQL, CASC, Hotfixes, addon errors or live probes, including spell/item questions that need game-data evidence.
4
4
  ---
5
5
 
6
6
  # Lychee Dev
@@ -91,14 +91,6 @@ reload the client, so build a reproducible scene after load and finish sampling
91
91
  before the report flush. State when the original transient scene could not be
92
92
  observed through the available loaded capabilities.
93
93
 
94
- When reviewing wowdoc/wowdata migration coverage, use the repository parity
95
- ledger (`tests/parity/coverage.json` and `docs/toolkit/regression.md`). It is
96
- case-level offline evidence, not a replay of retired executables. Read the case
97
- status and note: `passed` is current automated assertion coverage,
98
- `fixture-backed`/`fixture-backed-partial` retain fixture limits, and
99
- `intentional-change` is a deliberate 2.0 contract. Never describe the 55-case
100
- ledger as proof of complete real CDN, Hotfix, DB2, or multi-client coverage.
101
-
102
94
  ## Respect the authorization boundary
103
95
 
104
96
  Only run live commands inside the user's granted authorization.
@@ -140,15 +132,17 @@ probe again. This toolkit does not import old tools' data or task registries.
140
132
  Purely local in-game inspection lives in the in-game `/dev` workbench and does
141
133
  not require a CLI connection.
142
134
 
143
- The receiver's default chords are Ctrl+Alt+] to wake, Ctrl+Alt+Shift+] to
144
- submit, and Ctrl+Alt+[ to close. A user may change them in the addon's Settings
145
- page or with its local `/dev receiver bind` command. On first contact with a
146
- custom wake chord, pass that exact value with `--wake-binding` to `live
147
- instances`, `live connect`, `live reset`, `live bind`, or sessionless `live reload
148
- fallback` as applicable; do not cycle through guessed
149
- chords. A fresh ready receipt supplies the effective wake, submit and close
150
- profile, which the CLI verifies and saves with the connection. See
151
- [live-startup.md](references/live-startup.md#custom-receiver-bindings).
135
+ The receiver uses Ctrl+Alt+] to wake, Ctrl+Alt+Shift+] to submit, and
136
+ Ctrl+Alt+[ to close. Settings displays these bindings without editing controls.
137
+ The CLI owns their use; never send raw transport keys to work around a pending
138
+ operation. For an existing custom binding, follow
139
+ [live-startup.md](references/live-startup.md#existing-custom-receiver-bindings).
140
+
141
+ The bouncing Lychee is an activity indicator, not acceptance or completion
142
+ evidence. Receiving input temporarily blocks game keyboard/mouse input; probe
143
+ execution releases that shield while retaining the running indicator. Do not
144
+ hide it or interrupt the receiver just to make a transport screenshot cleaner.
145
+ Use the operation report and final display proof to establish completion.
152
146
 
153
147
  ## Interpret the evidence
154
148
 
@@ -1,7 +1,7 @@
1
1
  interface:
2
2
  display_name: "Lychee Dev Toolkit"
3
3
  short_description: "Evidence-first WoW source, data, asset, and live workflows"
4
- default_prompt: "Use $lycheedev to investigate this World of Warcraft question with pinned sources and complete evidence. For authorized live work, continue through report verification, acknowledgement and final QR dismissal; a visible QR is an intermediate state."
4
+ default_prompt: "Use $lycheedev to investigate this WoW technical question with pinned evidence and finish any authorized live operation through verified cleanup."
5
5
 
6
6
  policy:
7
7
  allow_implicit_invocation: true
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Command reference
5
5
 
6
- 85 implemented commands. Every command accepts `--format text|json|jsonl`;
6
+ 86 implemented commands. Every command accepts `--format text|json|jsonl`;
7
7
  `--help` works on the root and on any command. Read the JSON envelope, not
8
8
  just the exit code; preserve capture IDs and partial/truncated warnings.
9
9
 
@@ -217,6 +217,11 @@ just the exit code; preserve capture IDs and partial/truncated warnings.
217
217
  - `target available` — read-only. List the releases the version manifests serve for one region: --region <region>; one bounded manifest fetch per supported product with per-product failures reported inline; --offline is refused because the listing is inherently current
218
218
  Flags: `--format text|json|jsonl`, `--region <us|eu|cn|kr|tw>`, `--offline`.
219
219
 
220
+ ## update
221
+
222
+ - `update` — mutates. Update npm CLI and synchronize managed skills/addons; --plan inspects current targets without writes; --release applies an already installed release offline. Repeated --path/--installation scope targets and disable discovery. Filesystem completion does not activate a running game or Agent.
223
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--file <targets.json> (explicit array; disables discovery)`, `--release <distribution-root>`, `--path <skill-directory> (repeatable)`, `--installation <client-directory> (repeatable)`, `--plan`.
224
+
220
225
  ## version
221
226
 
222
227
  - `version` — read-only. Inspect the native toolkit build
@@ -6,6 +6,64 @@ subcommand `--help`; use only the commands and flags it exposes. If `describe`
6
6
  is available, use it to confirm the supported capability. Do not substitute a
7
7
  legacy installer or claim a planned release command exists.
8
8
 
9
+ ## Update the installed toolkit
10
+
11
+ For npm installations with `update` in their installed command contract:
12
+
13
+ ```text
14
+ lycheedev update --plan --format json
15
+ lycheedev update --format json
16
+ ```
17
+
18
+ The plan checks the current release and discovers remembered targets, existing
19
+ standard Agent skill directories and installed addons in configured local targets
20
+ or running clients without
21
+ game input. It does not check the registry for a newer version. To include an
22
+ offline/custom client or scope an isolated update, supply explicit targets;
23
+ when any target selector is present, automatic discovery is disabled:
24
+
25
+ ```text
26
+ lycheedev update --path <parent/lycheedev> --installation <client-directory> --home <workspace> --format json
27
+ ```
28
+
29
+ Repeat `--path` or `--installation` for multiple targets. Custom targets are
30
+ remembered after preflight for subsequent unscoped updates. An absent explicit
31
+ target can be installed when its parent already exists; an existing unmanaged
32
+ or edited target is a conflict, never permission to delete it.
33
+
34
+ For a saved explicit selection, `--file <targets.json>` accepts a JSON array of
35
+ objects with `component` (`skill` or `addon`) and absolute `path`. It cannot be
36
+ combined with the path selectors. An empty array intentionally updates only the
37
+ npm CLI and bundled tools; it never discovers or deploys other targets.
38
+
39
+ The npm launcher fetches one exact latest package into isolation, verifies it,
40
+ checks all targets, replaces the CLI (including its bundled LuaLS), then applies
41
+ that release's addon and Skill through native delivery. No running native process
42
+ holds the old executable during npm replacement. Successful replacement removes
43
+ old managed files; interrupted transactions retain recovery data. Retry with the
44
+ same arguments to use the pinned package and original targets. Do not remove a
45
+ transaction or choose another release to bypass a pending conflict. Failure can
46
+ leave the CLI updated while some target files still need recovery; inspect the
47
+ returned target states and `context.updateRecovery`, not only the CLI version.
48
+
49
+ For an already installed native release, or intentional offline payload sync:
50
+
51
+ ```text
52
+ lycheedev update --release <distribution-root> --path <parent/lycheedev> --installation <client-directory> --format json
53
+ ```
54
+
55
+ This verifies and applies that CLI version's payload; it does not self-replace
56
+ the native executable or fetch npm. Older CLIs without `update` must first be
57
+ upgraded using npm, then use the newly installed command. Do not call an
58
+ unimplemented update command merely because the Skill documents it.
59
+
60
+ `result.complete` confirms files and receipts. `activation: reload_required`
61
+ does not mean the game loaded them; `new_agent_context_required` does not mean
62
+ an existing Agent re-read the Skill. Continue runtime activation only when the
63
+ task includes it, using the verified selected client below.
64
+
65
+ ## Install, remove and activate
66
+
9
67
  Before a write, inspect the target's ownership, product/build identity, and
10
68
  file integrity. An unmanaged, modified, ambiguous, or conflicting target is a
11
69
  reportable stop condition; do not overwrite it, delete it, forge ownership, or
@@ -68,7 +68,10 @@ Loading and report persistence can reload the client, so recreate required
68
68
  scene state inside the probe and finish sampling before reporting.
69
69
  Each command releases the receiver panel and keyboard focus before entering
70
70
  business code. While an asynchronous probe is running, the bridge leaves no
71
- waiting panel or handshake QR over the scene. Finish visual sampling before
71
+ waiting panel or handshake QR over the scene. A small click-through bouncing
72
+ Lychee with the running label can remain beside the receipt area until probe
73
+ finalization. It does not block game input and is not proof of a verified report.
74
+ Account for this indicator when choosing a visual sampling region. Finish visual sampling before
72
75
  calling Finish/Fail: terminal receipts and subsequent cleanup input can be
73
76
  visible again. After execute completes, `display.state=cleared` confirms its
74
77
  receipt cleanup. Do not treat captures taken during command transport as the
@@ -17,7 +17,7 @@ whose identity could not be read.
17
17
  | `busy` | Preserve the owner's operation ID. Recover your own operation; do not steal another agent's window or reload it through desktop tools. For explicit user-authorized abandonment of an eligible probe, follow [live-investigation.md](live-investigation.md). Source/data work can continue. |
18
18
  | `identity_unreadable` | Inspect disk status and runtime evidence below. A timeout does not identify the cause. `capture: frame` does not prove the game is logged in or the addon loaded. |
19
19
  | `no_actor`, restricted identity, or not-ready input | Act on the returned reason. Login/character selection needs task authorization; combat or text focus must actually clear before retrying. |
20
- | A pending bootstrap attempt with `BTP-...` | Inspect `live status <id>`, then `live resume <id>` for read-only receipt recovery. Neither call sends the uncertain input again. Retain the selected window and installation. |
20
+ | A pending bootstrap attempt with `BTP-...` | Inspect `live status <id>`, then `live resume <id>` on that ID. Status is read-only; resume may retry only when durable progress proves commit was not sent. At the commit fence or with uncertain input it only observes. Retain the selected window and installation. |
21
21
 
22
22
  Inspect disk state with:
23
23
 
@@ -41,16 +41,14 @@ abandon <BTP-id>` preserves the unknown result and releases host ownership
41
41
  without game input. It does not prove that identify, connect or reset had no
42
42
  effect. Do not use abandonment as an automatic retry step.
43
43
 
44
- ## Custom receiver bindings
44
+ ## Existing custom receiver bindings
45
45
 
46
- The addon defaults to `ALT-CTRL-]` wake, `ALT-CTRL-SHIFT-]` submit and
47
- `ALT-CTRL-[` close. Its Settings page and local `/dev receiver bind
48
- <wake|submit|close> <chord>` configure its own runtime overrides;
49
- `/dev receiver reset` restores defaults. Allowed chords begin with `ALT-CTRL-`,
50
- may add `SHIFT-`, and end in `[`, `]`, or `F1`..`F12`. The close key must have
51
- a different terminal key from wake and submit because the focused receiver
52
- cannot reliably distinguish their physical modifiers. Conflict or ineffective
53
- bindings are rejected without overwriting the player's account bindings.
46
+ The normal profile is `ALT-CTRL-]` wake, `ALT-CTRL-SHIFT-]` submit and
47
+ `ALT-CTRL-[` close. Settings is read-only. Do not direct the user to edit bindings
48
+ there or change them during ordinary connection recovery. Older saved overrides
49
+ and the advanced local command can still exist; only handle them when supplied
50
+ by the user or verified configuration. Conflicting or ineffective bindings are
51
+ rejected without changing the player's account bindings.
54
52
 
55
53
  First contact cannot read a custom wake chord before waking the addon. If the
56
54
  user or verified configuration supplies it, pass the exact chord with
@@ -61,7 +59,7 @@ trigger, checks the effective profile in the fresh receipt, and saves the
61
59
  connection. It is a game input action even though it does not run business Lua.
62
60
  The CLI checks the effective three-chord profile in a fresh ready receipt and
63
61
  saves it with the session.
64
- Do not guess alternate chords after a timeout or infer that a Settings value
62
+ Do not guess alternate chords after a timeout or infer that a stored value
65
63
  became effective without a ready receipt. A later configuration change requires
66
64
  fresh connection evidence before the CLI sends another command.
67
65
 
package/release.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "lycheedev.release.v1",
3
- "version": "2.5.0",
4
- "commit": "2f84d59375dd2d673eae8e67b8646873e4c120b7",
3
+ "version": "2.5.1",
4
+ "commit": "518a5a7de7bc1d35bfcdba5eb1082df2b5e7950e",
5
5
  "binaries": {
6
6
  "windows-amd64": {
7
7
  "path": "native/windows-amd64/lycheedev.exe",
8
- "bytes": 25620480,
9
- "sha256": "e3018f254efcbca54c6854e40696441ca34f3c9421a6f6170b5f4e55a6e97196"
8
+ "bytes": 25676288,
9
+ "sha256": "f4d98508c36aab31cbfc7db7eebbe2d864416b222686015f44037b76702ed0e8"
10
10
  }
11
11
  },
12
12
  "resources": [
@@ -143,7 +143,7 @@
143
143
  {
144
144
  "path": "addon/Core/Runtime.lua",
145
145
  "bytes": 2581,
146
- "sha256": "8af69e16360635fbca8bee73b876495183364ca0a1e608270f0e993437a28a5e"
146
+ "sha256": "0429b0fd46ad1895a4a725a2ea386515b7e9d4ede3a41bcbb086798712d10418"
147
147
  },
148
148
  {
149
149
  "path": "addon/Core/Safety.lua",
@@ -163,7 +163,7 @@
163
163
  {
164
164
  "path": "addon/Lychee Dev.toc",
165
165
  "bytes": 2021,
166
- "sha256": "2f98fbdab6f518616d255b4b7ad7aef3eaaf4e712f2a4be724b234a278a34035"
166
+ "sha256": "ba532eed269f8310bcffafda23e57076f0f5ee121ca6f48aa8dc70f0572af38f"
167
167
  },
168
168
  {
169
169
  "path": "addon/Media/GitHub.png",
@@ -302,13 +302,13 @@
302
302
  },
303
303
  {
304
304
  "path": "skill/SKILL.md",
305
- "bytes": 10839,
306
- "sha256": "f8c1e86e69e7a50b255bc3b63f112e9418f089d215aa670360f0ef9676029cc3"
305
+ "bytes": 10304,
306
+ "sha256": "e89bffdf1a340da870ffdd3b208e555c093f97f029e0ca79d1bb532be087075c"
307
307
  },
308
308
  {
309
309
  "path": "skill/agents/openai.yaml",
310
- "bytes": 441,
311
- "sha256": "4e047f37b595196ddb4fefb40b27e84357049a62e20661fa1b9fe6b5368382c0"
310
+ "bytes": 339,
311
+ "sha256": "37d9150471e744e11622de7acc1e7e2eb4879e4f0b3fceeeeff37f663a0fad0f"
312
312
  },
313
313
  {
314
314
  "path": "skill/references/addon-validation.md",
@@ -322,8 +322,8 @@
322
322
  },
323
323
  {
324
324
  "path": "skill/references/commands.md",
325
- "bytes": 32958,
326
- "sha256": "6bec301582ff129ef59414390b4b817ad66ab4bddd4c81779cc964c44687a666"
325
+ "bytes": 33535,
326
+ "sha256": "8d7626d48f70df6d6b0c2b1dbb1bff7274a6cbfbc607931ff98bc6940125bcb0"
327
327
  },
328
328
  {
329
329
  "path": "skill/references/data-investigation.md",
@@ -342,18 +342,18 @@
342
342
  },
343
343
  {
344
344
  "path": "skill/references/installation.md",
345
- "bytes": 2632,
346
- "sha256": "d80fb9c42c07e83be335d1072d92a06d05a11542a79f7cdcde4b22c1f141ff0b"
345
+ "bytes": 5530,
346
+ "sha256": "6ccba47a0e2d58011ff3d5c9275fbdb789060ec85b8f1f158c836895aac95ea8"
347
347
  },
348
348
  {
349
349
  "path": "skill/references/live-investigation.md",
350
- "bytes": 23394,
351
- "sha256": "dad090d13c045241a642d31633f66db448c2b2ca4eb9d4938bf1534fa57f7135"
350
+ "bytes": 23651,
351
+ "sha256": "44a41b8397dee324468db395471ea0656d48fa3afa23d245d36d656fe1c3d11a"
352
352
  },
353
353
  {
354
354
  "path": "skill/references/live-startup.md",
355
- "bytes": 8491,
356
- "sha256": "4d1ab1298fd6a256f0492efb362810f262bfef0248309cd4151fa2a74ff6564c"
355
+ "bytes": 8446,
356
+ "sha256": "34cb64d11441fdadfa2117588e86366ff5c2e9f560aa36c4daed173f9a518ffa"
357
357
  },
358
358
  {
359
359
  "path": "skill/references/runtime-investigations.md",
@@ -6408,9 +6408,9 @@
6408
6408
  ],
6409
6409
  "correspondingSource": {
6410
6410
  "repository": "https://github.com/Follen/Lychee-Dev",
6411
- "commit": "2f84d59375dd2d673eae8e67b8646873e4c120b7",
6412
- "tag": "v2.5.0",
6413
- "archive": "lycheedev-2.5.0-corresponding-source.tar.gz",
6414
- "sha256": "460e6e4085b8606bb4bfcee61474c3dc1a67f91715e31ecb5d468ea4597fc5b6"
6411
+ "commit": "518a5a7de7bc1d35bfcdba5eb1082df2b5e7950e",
6412
+ "tag": "v2.5.1",
6413
+ "archive": "lycheedev-2.5.1-corresponding-source.tar.gz",
6414
+ "sha256": "a486991eac55a40b5a15b44b2dc41aab95baaf1cf090d377bcf0c701e9611bb2"
6415
6415
  }
6416
6416
  }