lycheedev 2.5.0 → 3.0.0

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 (40) hide show
  1. package/bin/lycheedev.mjs +39 -3
  2. package/bin/update.mjs +168 -0
  3. package/native/windows-amd64/lycheedev.exe +0 -0
  4. package/package.json +1 -1
  5. package/payload/addon/Bridge/ActivityView.lua +26 -12
  6. package/payload/addon/Bridge/InputProtection.lua +63 -0
  7. package/payload/addon/Bridge/InputState.lua +45 -0
  8. package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
  9. package/payload/addon/Bridge/ProbeExecution.lua +147 -0
  10. package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
  11. package/payload/addon/Bridge/SlotProtocol.lua +165 -0
  12. package/payload/addon/Bridge/SlotRuntime.lua +106 -0
  13. package/payload/addon/Bridge/StartupBeacon.lua +8 -11
  14. package/payload/addon/Core/Compat.lua +7 -0
  15. package/payload/addon/Core/Controls.lua +16 -0
  16. package/payload/addon/Core/Locale.lua +6 -4
  17. package/payload/addon/Core/Locale_enUS.lua +4 -2
  18. package/payload/addon/Core/Platform.lua +4 -2
  19. package/payload/addon/Core/Runtime.lua +17 -6
  20. package/payload/addon/Lychee Dev.toc +8 -2
  21. package/payload/addon/Modules/AutomationHistory.lua +119 -0
  22. package/payload/addon/Modules/AutomationView.lua +26 -6
  23. package/payload/addon/UI/Pages/About.lua +0 -3
  24. package/payload/addon/UI/Pages/Automation.lua +40 -27
  25. package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
  26. package/payload/addon/UI/Pages/Object.lua +0 -1
  27. package/payload/addon/UI/Pages/Run.lua +2 -1
  28. package/payload/addon/UI/Pages/Trace.lua +0 -1
  29. package/payload/addon/UI/Theme.lua +3 -2
  30. package/payload/addon/UI/Widgets.lua +32 -22
  31. package/payload/addon/UI/Window.lua +3 -35
  32. package/payload/skill/SKILL.md +40 -60
  33. package/payload/skill/agents/openai.yaml +1 -1
  34. package/payload/skill/references/commands.md +22 -15
  35. package/payload/skill/references/error-diagnosis.md +7 -11
  36. package/payload/skill/references/installation.md +64 -13
  37. package/payload/skill/references/live-investigation.md +193 -252
  38. package/payload/skill/references/live-startup.md +62 -132
  39. package/release.json +97 -67
  40. package/payload/addon/UI/Pages/Settings.lua +0 -82
@@ -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
@@ -42,8 +42,8 @@ For any authorized live question, research the exact client build and target
42
42
  addon revision, form a hypothesis, then write the smallest bounded Lua probe that
43
43
  can distinguish it. Choose the APIs, events, actions and assertions from that
44
44
  source and the task; probes are not restricted to UI or fixed templates. Declare
45
- the execution budget when loading the immutable revision. The CLI owns receiver
46
- input, report persistence and recovery; the probe owns its observation bounds,
45
+ the execution budget on the request. The CLI owns native input,
46
+ report persistence and recovery; the probe owns its observation bounds,
47
47
  cleanup and honest assertion result. See [live-investigation.md](references/live-investigation.md#design-a-discriminating-probe).
48
48
 
49
49
  The implemented command surface is exactly what `describe --format json`
@@ -54,57 +54,43 @@ capability.
54
54
 
55
55
  ## Finish the authorized live task
56
56
 
57
- A visible QR card, successful input, connection, or loaded probe is an
58
- intermediate state. Keep working in the same turn. Prefer `live execute` with
59
- the saved session, a Lua file or immutable probe revision, a stable request key,
60
- and an explicit execution budget. It owns execution, verified report retrieval,
61
- ACK and display cleanup as one operation. Read its report and capture IDs;
62
- completion requires `complete: true`, `cleanup: complete` and
63
- `display.state: cleared`. A business failure still returns its report and needs
64
- the same cleanup. Never ask the user to approve each transport step or scan a QR.
65
- Respect an explicit request to pause or retain an unacknowledged report.
66
-
67
- Use atomic `live probe load` / `live run` / `live finish` only for an explicitly
68
- staged investigation. `live run` stops at a verified report; continue with
69
- `live finish` in the same turn. Do not append another ACK, finish or hide to a
70
- successfully completed `live execute` operation.
71
-
72
- A connection-only task or standalone reload has no probe report to ACK. Verify
73
- its own completion/readiness fields and use `live hide` to dismiss the final
74
- receipt; do not invent a probe just to satisfy the probe lifecycle.
75
-
76
- On interruption or exit 6, inspect/resume the same operation, follow its
77
- structured `nextAction`, and read
78
- [live-investigation.md](references/live-investigation.md#recover-without-replay).
79
- Use the returned state to choose the next action; never replace the probe,
80
- switch windows, abandon ownership, or repeat uncertain input to force success.
81
- A pending result calls for recovery or diagnosis, not an immediate final answer.
82
- If the remaining action is blocked by user input, missing capability, or an
83
- unchanged external condition with no safe progress, explain the specific blocker,
84
- retained operation/session IDs, verified findings and unfinished cleanup. Never
85
- present that handoff as a completed task.
86
-
87
- Treat accepted input, verified report, business assertions and cleared display
88
- as separate facts. A verified report can contain failed assertions; a pending
89
- display does not erase the report. New probe loading and report persistence can
90
- reload the client, so build a reproducible scene after load and finish sampling
91
- before the report flush. State when the original transient scene could not be
92
- observed through the available loaded capabilities.
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.
57
+ Use the invoking project's directory consistently with `--project`. Native live
58
+ records are stored in `.lycheedev/live`; keep them out of source control and
59
+ retain the returned `CON-...` connection ID across turns. The CLI owns the 64
60
+ input slots, nonce allocation, native memory reader, reload and crash recovery.
61
+ Do not write slot files, manipulate journals, send raw keys or use wowdump.
62
+
63
+ Prefer `live execute` with that connection, a Lua file or immutable probe revision,
64
+ a stable request key, and explicit execution and host-wait budgets. Successful
65
+ transport requires `complete: true`, `reportState: verified`, `cleanup: complete`;
66
+ read `report.ok` separately to decide whether the probe itself passed. A connection
67
+ or bouncing logo is intermediate progress. Native transport has no QR to scan and
68
+ needs no extra ACK, finish or hide after completion.
69
+
70
+ On exit 6, inspect the reported stage/waiting reason and continue `live resume CON-...`
71
+ in the same project within the task's host-wait budget. A missing client, foreign
72
+ owner or unresolved execution outcome requires resolving that condition, not
73
+ opening another connection. Repeating an execute
74
+ request with identical code, budget and policy resumes its original work; changing
75
+ those inputs under the same key is a conflict. Choose `--policy observation` only
76
+ for probes safe to repeat after runtime loss. The default `opaque` policy retains
77
+ unknown effects instead of replaying them. A pending report or cleanup obligation
78
+ is not a reason to create another request. See [recovery](references/live-investigation.md#recover-without-replay).
79
+
80
+ At the end of the investigation, `live disconnect CON-...` unbinds the quiescent
81
+ runtime and releases its host ownership. Keep the connection only when the task
82
+ requires continued use. Read-only source/data work can continue independently.
83
+ If the selected process exited, disconnect that old CON from its original project;
84
+ the CLI can prove the ended lifetime and retire ownership while preserving unknown
85
+ results. See [process exit](references/live-startup.md#ownership-and-recovery).
86
+ Old OP/BTP records remain historical evidence; do not mix their lifecycle with CON.
101
87
 
102
88
  ## Respect the authorization boundary
103
89
 
104
90
  Only run live commands inside the user's granted authorization.
105
91
  Use `live instances --passive` for window inventory without input or capture;
106
- it does not establish actor identity or readiness. Plain `live instances` sends one
107
- identity trigger to each matching, unoccupied running window. Scope discovery
92
+ it does not establish actor identity or readiness. Use native connect for fresh
93
+ actor binding. Scope discovery
108
94
  to the authorized installation/PID when supplied. A named character also limits
109
95
  mutation: retain its verified window binding and never fall back to a different
110
96
  online character. Under read-only or local-only
@@ -131,7 +117,7 @@ the project lock must not retarget an investigation already in progress.
131
117
  For live work, use a saved session to identify the target. The CLI must reconnect
132
118
  and verify current readiness before input; historical evidence alone cannot do
133
119
  that. When no session exists yet, `live connect` handles a known target directly;
134
- use `live instances` when candidate discovery is needed. The CLI completes
120
+ use `live instances --passive` when window discovery is needed. The CLI completes
135
121
  identification, selection and connection mechanically: present the candidates (product/build, character,
136
122
  realm) and resolve only the ambiguity the CLI reports. A unique match needs no
137
123
  question; several identical candidates stay separate until the user chooses.
@@ -140,15 +126,9 @@ probe again. This toolkit does not import old tools' data or task registries.
140
126
  Purely local in-game inspection lives in the in-game `/dev` workbench and does
141
127
  not require a CLI connection.
142
128
 
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).
129
+ Input recovery, short protection phases and activity indicators are handled by
130
+ the CLI/addon; see [input and recovery](references/live-investigation.md#input-and-recovery)
131
+ when focus, held keys or interrupted input explains a pending result.
152
132
 
153
133
  ## Interpret the evidence
154
134
 
@@ -162,7 +142,7 @@ the capture is no longer referenced. Keep is idempotent; remove is a destructive
162
142
  CAS operation that refuses external references and never deletes a blob shared by
163
143
  another capture. Do not use `cache prune` as a substitute for either decision.
164
144
 
165
- For a live result, distinguish `report.state`, report content and `cleanup`.
145
+ For a native live result, distinguish `reportState`, report content and `cleanup`.
166
146
  A verified report remains useful when cleanup is pending; `complete: false` must
167
147
  not be described as full completion. A probe error and a transport failure are
168
148
  also different outcomes. Preserve the operation ID for recovery and the capture
@@ -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
+ 87 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
 
@@ -118,8 +118,8 @@ just the exit code; preserve capture IDs and partial/truncated warnings.
118
118
 
119
119
  - `live probe put` — mutates. Register immutable bounded Lua source under a mutable name without touching the game: --name <name> --file <probe.lua>; returns a content-addressed revision
120
120
  Flags: `--home <root>`, `--format text|json|jsonl`, `--name <name>`, `--file <probe.lua>`.
121
- - `live execute` — mutates. Execute one complete investigation through verified report, ACK and cleared display; repeat the same request or resume its operation after interruption: --session <session-id> (--file <lua-file> | --probe <name-or-revision>) --request <idempotency-key> --budget-seconds <1-120> [--account <account>]
122
- Flags: `--home <root>`, `--format text|json|jsonl`, `--file <lua-file>`, `--session <session-id>`, `--probe <name-or-revision>`, `--request <idempotency-key>`, `--budget-seconds <1-120>`, `--account <account>`.
121
+ - `live execute` — mutates. Execute a bounded probe through durable verified result and runtime release; native CON connections use project journals and stable request keys; --policy controls recovery after runtime loss
122
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--file <lua-file>`, `--session <session-id>`, `--probe <name-or-revision>`, `--request <idempotency-key>`, `--budget-seconds <1-120>`, `--account <account>`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`, `--policy <opaque|observation> (default opaque)`.
123
123
  - `live probe load` — mutates. Load one immutable probe revision with a declared 1..120 second execution budget: --session <session-id> --probe <name-or-revision> --request <idempotency-key> --budget-seconds <1-120> [--account <account>]
124
124
  Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`, `--probe <name-or-revision>`, `--request <idempotency-key>`, `--budget-seconds <1-120>`, `--account <account>`.
125
125
  - `live probe list` — read-only. List active probe names without game input; --include-removed shows tombstoned names
@@ -130,36 +130,38 @@ just the exit code; preserve capture IDs and partial/truncated warnings.
130
130
  Flags: `--home <root>`, `--format text|json|jsonl`.
131
131
  - `live run <operation-id>` — mutates. Execute one loaded operation and return its verified report with cleanup pending; acknowledge separately with live ack: live run <operation-id>
132
132
  Flags: `--home <root>`, `--format text|json|jsonl`.
133
- - `live instances` — mutates. Discover supported installations and running game windows; --passive lists windows without game input, capture or actor claims; otherwise probes identity with the dedicated receiver
134
- Flags: `--home <root>`, `--format text|json|jsonl`, `--installation <client-or-game-root>`, `--wake-binding <chord>`, `--passive`.
135
- - `live connect` — mutates. Discover, identify and connect a game window automatically: [--snapshot <pin>] [--character <name>] [--realm <realm>] [--pid <pid>] [--installation <client>] [--session <session-id> to revive] [--capture-area <window|x,y,width,height>]; a unique match connects without manual commands, ambiguity returns exit 2 with context.candidates; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins
136
- Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--pid <pid>`, `--installation <client>`, `--session <session-id>`, `--capture-area <window|x,y,width,height>`, `--wake-binding <chord>`.
133
+ - `live instances` — read-only. List supported installations and running windows without game input or actor claims; use live connect for fresh native identity binding
134
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--installation <client-or-game-root>`, `--passive`.
135
+ - `live connect` — mutates. Discover and freshly bind a native memory/64-slot connection in the invoking project; optional snapshot constrains build; --session CON-id resumes retained work
136
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--pid <pid>`, `--installation <client>`, `--session <session-id>`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
137
137
  - `live reset` — mutates. Unblock a stuck window whose in-game queue blocks identity after abandon or a lost receipt: [--snapshot <pin>] [--character <name>] [--realm <realm>] [--pid <pid>] [--installation <client>]; sends one fixed nonce-correlated reset trigger per unowned matching window, expects its receipt, then reconnects; disk-owned windows are never touched; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins
138
138
  Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--pid <pid>`, `--installation <client>`, `--wake-binding <chord>`.
139
139
  - `live reload` — mutates. Perform one correlated UI reload on the selected client and verify the new runtime: --session <session-id> --request <idempotency-key>
140
- Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`, `--request <idempotency-key>`.
141
- - `live reload fallback` — mutates. Activate a clean managed addon on one fixed client using Esc×3 Enter /reload Enter, then verify identity: --installation <client> --pid <pid> --request <idempotency-key> [--session <prior-session>] [--wake-binding <chord>]
142
- Flags: `--home <root>`, `--format text|json|jsonl`, `--installation <client>`, `--pid <pid>`, `--request <idempotency-key>`, `--session <prior-session>`, `--wake-binding <chord>`.
140
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`, `--request <idempotency-key>`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
141
+ - `live reload fallback` — mutates. Activate a clean managed addon and its 64 slots on an explicit installation/PID with a recorded reload using memory readiness when available (fixed bootstrap otherwise), then verify a new runtime and fresh connection; --request is idempotent
142
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--installation <client>`, `--pid <pid>`, `--request <idempotency-key>`, `--session <prior-session>`, `--wake-binding <chord>`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
143
143
  - `live ack <operation-id>` — mutates. Acknowledge one verified operation, retire only its exact queue entry and release its window ownership without forcing another reload: live ack <operation-id>
144
144
  Flags: `--home <root>`, `--format text|json|jsonl`.
145
145
  - `live finish <operation-id>` — mutates. Acknowledge one verified operation and verify its receipt display is cleared; retry the same operation to finish pending display cleanup: live finish <operation-id>
146
146
  Flags: `--home <root>`, `--format text|json|jsonl`.
147
- - `live bugs` — mutates. Capture 1-100 existing addon errors from the selected client as a verified report and stop before acknowledgement
148
- Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`, `--request <idempotency-key>`, `--count <1-100>`, `--account <account>`.
147
+ - `live bugs` — mutates. Read 1-100 retained provider errors; native CON connections persist and release the bounded observation result automatically
148
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`, `--request <idempotency-key>`, `--count <1-100>`, `--account <account>`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
149
149
  - `live hide` — mutates. Dismiss the displayed bridge receipt on the selected client after its evidence is archived: --session <session-id>; refuses windows owned by in-flight operations and verifies the clear from valid frames
150
150
  Flags: `--home <root>`, `--format text|json|jsonl`, `--session <session-id>`.
151
151
  - `live bind` — mutates. Observe /dev connect in the selected game, verify effective receiver bindings with one read-only identity transaction, and save a connection: --snapshot <pin>; optional --wake-binding for a custom first-contact wake; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins
152
152
  Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`, `--installation <client>`, `--pid <pid>`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--capture-area <window|x,y,width,height>`, `--wake-binding <chord>`.
153
153
  - `live status <operation-id>` — read-only. Read persisted work or a BTP bootstrap attempt without sending input: live status <operation-id>
154
- Flags: `--home <root>`, `--format text|json|jsonl`.
154
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`.
155
155
  - `live resume <operation-id>` — mutates. Recover the exact operation or BTP bootstrap attempt; revalidate identity and never repeat unknown input
156
- Flags: `--home <root>`, `--format text|json|jsonl`.
156
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
157
157
  - `live cancel <operation-id>` — mutates. Cancel only a prepared operation before queue publication or game input: live cancel <operation-id>; later stages require live resume for safe cleanup
158
158
  Flags: `--home <root>`, `--format text|json|jsonl`.
159
159
  - `live abandon <operation-or-bootstrap-id>` — mutates. Explicitly stop unresolved probe, bugs, fixed reload, or bootstrap recovery; preserve evidence and unknown results, release host ownership without game input or claiming business completion
160
160
  Flags: `--home <root>`, `--format text|json|jsonl`.
161
161
  - `live session <session-id>` — read-only. Verify a retained session and its evidence: live session <session-id>; does not reconnect or authorize input
162
- Flags: `--home <root>`, `--format text|json|jsonl`.
162
+ Flags: `--home <root>`, `--format text|json|jsonl`, `--project <directory>`.
163
+ - `live disconnect <connection-id>` — mutates. Unbind a quiescent memory/slot connection and release its durable host ownership; repeat safely after interruption
164
+ Flags: `--format text|json|jsonl`, `--project <directory>`, `--wait-seconds <1-600> (default 120)`, `--no-cache`.
163
165
 
164
166
  ## project
165
167
 
@@ -217,6 +219,11 @@ just the exit code; preserve capture IDs and partial/truncated warnings.
217
219
  - `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
220
  Flags: `--format text|json|jsonl`, `--region <us|eu|cn|kr|tw>`, `--offline`.
219
221
 
222
+ ## update
223
+
224
+ - `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.
225
+ 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`.
226
+
220
227
  ## version
221
228
 
222
229
  - `version` — read-only. Inspect the native toolkit build
@@ -7,19 +7,15 @@ another probe merely to recreate an error.
7
7
  For an authorized snapshot of errors already retained by the addon provider:
8
8
 
9
9
  ```text
10
- lycheedev live bugs --session <session-id> --request <stable-key> --count <1-100> --format json
10
+ lycheedev live bugs --project <project-directory> --session <CON-id> --request <stable-key> --count <1-100> --wait-seconds 120 --format json
11
11
  ```
12
12
 
13
- This reports !BugGrabber provider storage newest-first. It does not claim to
14
- capture every addon error. `provider_unavailable`, partial fields, zero returned
15
- rows and incomplete coverage must remain distinct. After reading the verified
16
- report, call `live finish <operation-id>` to acknowledge and dismiss the final
17
- receipt. Check `display.state: cleared` and `complete: true`; a pending display
18
- retains the verified report and is recovered with finish on the same operation.
19
- Perform this within the
20
- authorized task without asking for a separate ACK confirmation. A QR or verified
21
- report with pending cleanup is not the end of this workflow.
22
-
13
+ This reads !BugGrabber provider storage newest-first through a bounded native
14
+ observation. It does not claim to capture every addon error. Provider unavailable,
15
+ partial fields, zero rows and incomplete coverage remain distinct. Native bugs
16
+ completes verified result persistence and release; inspect `report.ok` and the
17
+ snapshot's own status, then require `complete: true` and `cleanup: complete`.
18
+ Do not add legacy ACK/finish/hide commands. Resume the same CON on interruption.
23
19
  Use a question-specific probe only when the retained error snapshot cannot
24
20
  distinguish the hypotheses. Follow [live-investigation.md](live-investigation.md)
25
21
  and keep sampling, output and async lifetime bounded.
@@ -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
@@ -23,19 +81,12 @@ semantics. Verify the release inventory through the normal installer and
23
81
  installation uses the lightweight TOC/XML/Lua checker and does not require Git
24
82
  or LuaLS on the target machine.
25
83
 
26
- For an authorized running-client upgrade with a saved session, install the
27
- current release through the managed installer, then use `live reload --session
28
- <session-id> --request <stable-key>`. This controlled upgrade path can connect
29
- the archived older runtime to the exact current CLI's managed addon; it checks
30
- the target files again before refresh input. A modified or mismatched install
31
- must be resolved, not bypassed. The new runtime requires correlated ready
32
- evidence; ordinary live commands do not accept an old runtime merely because
33
- its new files exist on disk. Recover an interrupted reload by its operation ID.
34
- The original session remains constrained to the same process, window and actor
35
- when reconnecting after upgrade. Dismiss a standalone reload's final receipt
36
- with `live hide`; first activation without a usable session follows the startup
37
- reference below.
38
-
84
+ Before updating a managed installation, finish current operations and disconnect
85
+ your own native CON connections. The installer refuses unresolved host ownership;
86
+ do not clear a foreign project's claim. Deploy through the managed installer,
87
+ then activate the selected process using the startup workflow. All 64 slot files
88
+ are part of the managed installation. An installed CLI or Skill does not update
89
+ an already running client, and a disk-only result is not live readiness.
39
90
  If the authorized task includes using the running client, follow
40
91
  [live-startup.md](live-startup.md) after deployment. Activation precedes a
41
92
  bridge session when the addon is not running; do not require that session as