lycheedev 3.2.6 → 3.2.9

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 (35) hide show
  1. package/THIRD_PARTY_NOTICES +4631 -253
  2. package/bin/lycheedev.mjs +1 -1
  3. package/bin/update.mjs +5 -1
  4. package/native/windows-amd64/lycheedev.exe +0 -0
  5. package/package.json +1 -1
  6. package/payload/addon/Bridge/ReceiverBindings.lua +25 -5
  7. package/payload/addon/Core/Execute.lua +19 -4
  8. package/payload/addon/Core/Runtime.lua +6 -1
  9. package/payload/addon/Core/Serializer.lua +5 -1
  10. package/payload/addon/Lychee Dev.toc +1 -1
  11. package/payload/addon/THIRD_PARTY_NOTICES +4631 -253
  12. package/payload/skill/SKILL.md +38 -93
  13. package/payload/skill/agents/openai.yaml +2 -2
  14. package/payload/skill/references/data-investigation.md +52 -88
  15. package/payload/skill/references/live-probes.md +65 -167
  16. package/payload/skill/references/publish.md +30 -0
  17. package/payload/skill/references/runtime-investigations.md +41 -120
  18. package/payload/skill/references/source-research.md +49 -156
  19. package/release.json +34 -109
  20. package/payload/skill/references/addon-validation.md +0 -108
  21. package/payload/skill/references/asset-export.md +0 -192
  22. package/payload/skill/references/commands.md +0 -222
  23. package/payload/skill/references/data-hotfix.md +0 -128
  24. package/payload/skill/references/data-query-recipes.md +0 -92
  25. package/payload/skill/references/data-recovery.md +0 -73
  26. package/payload/skill/references/data-tables.md +0 -207
  27. package/payload/skill/references/data-targets.md +0 -99
  28. package/payload/skill/references/error-diagnosis.md +0 -69
  29. package/payload/skill/references/installation.md +0 -133
  30. package/payload/skill/references/live-investigation.md +0 -127
  31. package/payload/skill/references/live-recovery.md +0 -275
  32. package/payload/skill/references/live-startup.md +0 -124
  33. package/payload/skill/references/source-preparation.md +0 -82
  34. package/payload/skill/references/source-relations.md +0 -65
  35. package/payload/skill/references/source-value-flow.md +0 -67
@@ -1,124 +0,0 @@
1
- # Doctor and startup
2
-
3
- Use this for first contact, a newly installed or upgraded addon, or a startup
4
- failure. Disk installation and a loaded runtime are separate facts. Native live
5
- uses Lycheedev mailbox protocol v1: a named Mailbox, 500 slots and two formal game bindings.
6
-
7
- ## Diagnose the selected target
8
-
9
- The current CLI has one `doctor` command for workspace and live diagnosis and
10
- repair. Check the installed CLI's known `describe`/help capabilities before using
11
- these flags with an older installation. A newer Skill or the same displayed
12
- version number does not establish the same commit, wire protocol or slot inventory.
13
- Keep an older CON with its matching CLI for supported diagnosis/recovery;
14
- [current drivers cannot execute old-wire journals](live-recovery.md#durable-evidence-and-older-journals).
15
- Do not replace its journal or install a new driver merely to make these examples fit.
16
-
17
- Retain the authorized installation and PID, or the original project and CON.
18
- Use `live instances --passive` only when a target is missing. Folder names,
19
- shared builds and the Windows foreground window do not identify a connection.
20
-
21
- ```text
22
- lycheedev doctor --project <project-directory> --installation <client> --pid <pid> --format json
23
- lycheedev doctor --project <project-directory> --session <CON-id> --format json
24
- ```
25
-
26
- Doctor checks the managed files, 500-slot inventory, PID ownership, runtime
27
- locator, independent bootstrap diagnostic, current runtime and fresh INPUT.
28
- It sends no keys and creates no connection. Read each check’s state, detail and
29
- nextStep. A bootstrap snapshot explains startup; only fresh INPUT authorizes
30
- machine input. These live details appear in `result.live`, with the checks also
31
- included alongside workspace/data/source checks in `result.checks`.
32
-
33
- ## Complete the authorized repair
34
-
35
- Within an authorized live task, activation and recovery need no repeated approval.
36
- Use `--fix` when diagnosis requires installation, activation or connection recovery:
37
-
38
- ```text
39
- lycheedev doctor --fix --project <project-directory> --installation <client> --pid <pid> --format json
40
- ```
41
-
42
- The packaged CLI uses its own distribution. Development or separately staged
43
- releases can supply `--release <release-root>`; `--output <archive-directory>`
44
- selects the upgrade archive. The CLI installs absent files or upgrades a clean
45
- managed installation through the existing installer. Modified/unmanaged files
46
- need [installation](installation.md) diagnosis, not an overlay copy.
47
-
48
- Missing or damaged slot manifests and slot files are archived and rebuilt after
49
- the original connection is retired. To explicitly initialize all 500 slots, use
50
- `doctor --fix --hard-reset` with the same target or original CON. This keeps the
51
- original journals and payload archive; it does not mark unknown business as
52
- successful or replay submitted input. An unresolved live owner still has to be
53
- closed through its original project before shared installation files can change.
54
- If that runtime is still active, repair uses the existing recorded reload flow
55
- to obtain destruction evidence before resetting. An active control request keeps
56
- its original deadline and submitted input; repair does not replace it.
57
- Interrupted resets retain their archive reference in the original project.
58
- Repeat `doctor --fix` there to finish the same reset. `result.live.repairArchive`
59
- is the base path accepted by `--output`; the original slot files are in its
60
- `.slots` sibling.
61
-
62
- | Result | Continue |
63
- | --- | --- |
64
- | Ready runtime, clean installation | Connect and keep the returned CON |
65
- | INPUT slotReloadRequired=true | Startup enabled managed slots for this character; connect or resume lets the CLI reload within the original CON and deadline before binding |
66
- | Two formal bindings loaded under the previous protocol name | Let fix/resume send the verified reload key once, then bind the current protocol; do not ask for manual reload merely because the name changed |
67
- | Existing connection in this project | Resume its original request; pending input is not replaced |
68
- | Foreign project owns the PID | Continue from the owning project; do not delete its claim |
69
- | manual_reload_required | Ask the user to reload once in the selected game window, then resume the returned CON |
70
- | Bootstrap failed | Read its startup reason and addon errors; the manual reload binding remains available |
71
- | restart_required / incomplete loaded inventory | Restart that selected client within scope; repeated reloads do not discover missing folders |
72
- | Combat, restricted editor, stale INPUT | Preserve the CON and wait for the reported condition to change |
73
-
74
- When updating a selected PID that already has a connection, fix closes the original CON through the repair path before replacing files.
75
- This path accepts clean prior managed files for cleanup and never starts pending business. Unresolved input or another
76
- instance’s claim can block the shared-directory update; retain the original IDs.
77
- Each process sharing the installation must load and verify the new runtime
78
- independently. One PID’s successful reload never activates another PID.
79
-
80
- At startup the main addon checks the current character's managed slots, enables
81
- disabled ones and saves the settings without loading slots. A changed setting
82
- sets `Mailbox.input.slotReloadRequired` until reload. This is separate from
83
- physical input readiness: combat, restricted focus and keyboard activity still
84
- delay the reload. Already enabled slots cause no settings write or reload.
85
- The CLI retains any existing reload request and pending business evidence;
86
- the flag never authorizes replay of submitted or unknown input. Read-only doctor
87
- reports this state as `live.slot_activation`; it does not send the reload itself.
88
-
89
- ## First installation and reload
90
-
91
- A loaded runtime with fresh two-key INPUT can reload automatically during a
92
- protocol-name upgrade. The CLI reads its effective reload binding, journals
93
- one key delivery and observes the new runtime. Its old business wire is not
94
- reused. A pending activation is reassessed by resume when this capability is available.
95
-
96
- If the addon is not running, it cannot register a key or report where text would
97
- land. The CLI records `activation_waiting_manual_reload` and sends nothing.
98
- The user enters `/reload` once in that exact game window; then:
99
-
100
- ```text
101
- lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120 --format json
102
- ```
103
-
104
- Manual waiting does not spend the later connection budget. Once the CLI observes
105
- the new runtime, normal bounded binding begins. If the client must restart to
106
- find new slot folders, retire the old process's connection and bind the new PID;
107
- do not transfer unknown input to it. Preserve the selected actor when specified.
108
-
109
- The compatibility command `live reload fallback` follows the same activation
110
- rules. It no longer sends Esc, Enter or chat text. Older input-v3/hybrid-v2
111
- runtimes require manual activation; their records do not authorize new keys.
112
-
113
- ## Keyboard behavior
114
-
115
- The keybinding page shows Execute and Reload under Lychee Dev. Defaults are
116
- Ctrl+Alt+F12 and Ctrl+Alt+F11; free conflict fallbacks are F10 and F9. Existing
117
- player assignments are preserved, and the CLI reads actual effective keys from
118
- Mailbox. `/dev receiver reset` fills missing actions using free defaults.
119
-
120
- Ordinary EditBoxes selectively forward these two actions while keeping draft,
121
- cursor and focus. Password/secure/protected editors stay blocked. Native input
122
- uses zero Esc; reload directly invokes the UI API. A submitted or unknown key
123
- is observed through the original CON rather than retried. See
124
- [live recovery](live-recovery.md) for retained input and runtime retirement.
@@ -1,82 +0,0 @@
1
- # Source selection and recovery
2
-
3
- Read when the requested source is not pinned or source preparation fails.
4
-
5
- ## Select the repository revision
6
-
7
- Use `source list` to discover repository keys and their supported tracks. It does
8
- not list tags; missing version text there does not mean the release is absent.
9
- Read the repository's own track map: do not apply a game product to every addon
10
- repository. A source track is not proof of installation compatibility.
11
-
12
- For `wow-ui-source`, the seven delivery products map to these Git branches:
13
-
14
- | Product | Branch |
15
- | --- | --- |
16
- | `retail` | `live` |
17
- | `classic` | `classic` |
18
- | `classic-era` | `classic_era` |
19
- | `titan` | `classic_titan` |
20
- | `forever-asia-beta`, `forever-cn-beta` | `forever` |
21
- | `anniversary` | `classic_anniversary` |
22
-
23
- The beta folder `_classic_beta_` does not imply the old Git branch `classic_beta`.
24
- The legacy family-wide `forever` source pin can accompany either beta's Data
25
- pin; regional source pins retain their exact delivery identity. Data build
26
- configurations and client runtime verification remain separate even when the
27
- UI source commit is shared.
28
-
29
- Initialize a new Toolkit home with `lycheedev init` before syncing; an empty
30
- directory alone is not a workspace. Reuse an initialized `--home` when available.
31
- Use that same home for preparation and subsequent pin reads; a pin ID does not
32
- select a different workspace. Pass `--home <workspace>` when working outside its
33
- normal discovery context.
34
-
35
- ```text
36
- lycheedev source list --format json
37
- lycheedev source sync --source <catalog-key> --product <repository-track> --ref <commit-or-full-ref> --format json
38
- ```
39
-
40
- `source sync` returns the immutable PinnedSet directly. `--ref` accepts a 40-hex
41
- commit or full `refs/heads/...` / `refs/tags/...` ref. Omission observes the selected
42
- track's current branch; use that only when the request allows current source.
43
- For a named release without an exact ref, establish its tag/commit from repository
44
- evidence already retained or available through the Toolkit. If the installed CLI
45
- lacks the needed tag/ref discovery capability, use verified external repository
46
- metadata under the [source routing rules](source-research.md#route-source-evidence),
47
- then return the resolved ref to `source sync`. Ask only if the mapping remains
48
- unavailable or ambiguous. Never guess a tag, silently use latest, or replace an
49
- unavailable exact revision with a branch.
50
-
51
- Carry the returned fixed pin and exact commit between calls. Preserve requested
52
- version/tag, repository identity and parser revision; a tag is a traceable label,
53
- not immutable evidence. Separate third-party addon pins from client API pins;
54
- `--environment <client-pin>` on refs/context supplies API context without changing
55
- the addon revision. Folder names and branch labels do not prove a client's build.
56
-
57
- ## Recover without changing the revision
58
-
59
- Keep the original command, pin/ref and structured error. The CLI prepares mappings
60
- when the operation needs them; raw file inspection reads fixed Git content directly.
61
- `source list --snapshot <pin>` reports readiness;
62
- `source index --snapshot <pin>` is optional, not a mandatory repair sequence.
63
-
64
- | Condition | Next action |
65
- | --- | --- |
66
- | Unknown repository/track or invalid ref | Check catalog and exact ref syntax; correct the selection without substituting the requested version |
67
- | Missing Git, source objects or preparation failure | Address the named prerequisite and retry the same fixed source; do not manually rewrite managed worktrees |
68
- | Integrity failure | Preserve evidence and diagnose changed/corrupt bytes; do not bypass verification or delete caches blindly |
69
- | Syntax diagnostics / partial map | Inspect readable original files and retain the gaps; unparsed does not mean absent |
70
- | Missing LuaLS or client environment | Continue original-source research with partial semantic coverage; see [source-relations.md](source-relations.md) |
71
- | Invalid cursor | Restore the originating command and scope to continue, or start without a cursor for the changed scope; do not merge those page sets |
72
- | Resource budget | Narrow to the part needed by the question; retain omitted scope, not a claim of complete investigation |
73
-
74
- Allow at most one unchanged retry for a transient failure within the task budget.
75
- Further retries require a changed cause. If still blocked, stop that branch and
76
- report its exact revision, error, useful captures and missing prerequisite;
77
- independent useful source inspection may continue. Do not copy data-only timeout
78
- or offline flags onto source commands; consult installed help for their surface.
79
-
80
- Source disk reclamation is separate from research. Only when requested, use
81
- `source prune --target-bytes <n>`: it removes idle derived worktrees and preserves
82
- pins, cached facts and captures. It is not the ordinary `cache prune` command.
@@ -1,65 +0,0 @@
1
- # Source relationships and bounded context
2
-
3
- Read when callers, cross-file implementation, loading context or semantic
4
- resolution can change the answer. Simple declaration lookup can stop earlier.
5
-
6
- ## Select a symbol, then follow its evidence
7
-
8
- Use `symbolId` from a pinned query. `source inspect --symbol <qualified-name>`
9
- finds candidates; `--target-path <path>` inspects file/asset metadata. Same spelling
10
- does not join declarations across scopes, files or repositories. A bare `--symbol`
11
- is suitable only when unambiguous; otherwise inspect candidates and choose by
12
- their original locations and the question.
13
-
14
- ```text
15
- lycheedev source refs --snapshot <pin> --symbol-id <id> --direction incoming --limit 50 --format json
16
- lycheedev source context --snapshot <pin> --symbol-id <id> --limit 50 --max-lines 120 --format json
17
- ```
18
-
19
- `refs` reports incoming/outgoing/both relations. `context` combines the definition,
20
- bounded source excerpts, relations and available loading evidence. Retain relation
21
- state, original locations and coverage: confirmed semantic resolution, static
22
- candidates and unknown edges have different evidentiary strength. Generated API
23
- declarations describe a contract; they are not necessarily implementation bodies.
24
-
25
- The CLI attempts its verified bundled LuaLS when needed. For a third-party addon,
26
- add `--environment <client-pin>` when client API context matters. Preserve both
27
- source and environment identities; a Retail environment is not a substitute for
28
- Forever. `--static-only` deliberately limits evidence to structural analysis.
29
- Missing runtime/environment can leave usable source evidence with semantic
30
- coverage partial. Neither static inference nor LuaLS types prove runtime behavior.
31
-
32
- Inspect `environmentManifest` and coverage to confirm which client definitions
33
- were actually used. When the research source itself is `wow-ui-source`, that
34
- pin supplies its own environment; `--environment` supplies the separate client
35
- pin for third-party source, rather than retargeting a Blizzard source pin.
36
-
37
- ## Continue only the required scope
38
-
39
- Query results contain a bounded relation preview. Use refs, not repeated query
40
- pages, to investigate its edges. Each command owns its own `nextCursor`; retain
41
- snapshot, symbol/query, environment, analysis options and budgets on continuation.
42
- An ending page does not erase missing earlier pages or unresolved dynamic edges.
43
- To change direction, depth, flow mode or excerpt budgets, start without the old
44
- cursor. Add `--session-reuse` only for repeated semantic work as described in
45
- [source-research.md](source-research.md#optional-luals-session-reuse); it does not
46
- make a cursor portable or strengthen a relation's evidence state.
47
-
48
- For context, `--max-lines`, `--max-bytes`, `--limit` and `--depth` bound different
49
- parts of the result; inspect its truncation and continuation metadata. Follow a
50
- cursor or request the relevant original-file range when the omitted material
51
- matters. Do not increase every bound just to make an incomplete flag disappear.
52
-
53
- Mapping completeness describes syntax extraction, not a validated load closure.
54
- When actual TOC/XML order or multi-client compatibility matters, use
55
- [addon-validation.md](addon-validation.md). Keep dynamic/conditional loading
56
- unresolved when source cannot determine it.
57
-
58
- For a concrete value/operation question, use
59
- [source-value-flow.md](source-value-flow.md); ordinary relation traversal alone
60
- does not establish a secret-value propagation path.
61
-
62
- For a relation crossing repositories, use its target repository, commit and
63
- original location to obtain the matching fixed source before following it.
64
- An environment declaration or same-named symbol is not evidence that an addon
65
- dependency was loaded. Leave missing dependency and runtime binding edges open.
@@ -1,67 +0,0 @@
1
- # Secret values and secure taint
2
-
3
- Read for a concrete value, consuming operation or taint report; ordinary API
4
- lookup does not require a value-flow investigation.
5
-
6
- For these questions, start from the reported operation, value or source location.
7
- Pin both the addon revision and the relevant client API source; inspect the exact
8
- generated declarations and their conditions. Preserve metadata such as
9
- `SecretReturns`, `SecretPayloads` and `SecretArguments` as written. Do not assume
10
- Forever follows Retail rules or lacks secret values because it is an older client.
11
- Known `SecretArguments` modes such as `AllowedWhenTainted` and
12
- `AllowedWhenUntainted` describe conditional permission, not a static proof of
13
- the caller's taint state. Keep the raw mode in the finding and classify the
14
- path as possible until runtime conditions are observed.
15
- An API marker can establish a possible source; it alone does not prove that the
16
- reported call produced a secret value or that the consuming operation forbids it.
17
-
18
- Use the installed capabilities reported by `describe --format json`. Query and
19
- inspect can support a source-based explanation; inferred calls and LuaLS types
20
- alone are not a verified value-flow analysis. Request `source context --flow`
21
- only for a concrete value/operation question. Interpret returned steps,
22
- conditions, rule identity and unknown boundaries; do not claim a proven
23
- propagation path when the result has only static candidates or incomplete coverage.
24
-
25
- Select the Lua declaration containing the reported path, not merely the generated
26
- API declaration. For third-party code, a bounded entry is:
27
-
28
- ```text
29
- lycheedev source context --snapshot <addon-pin> --symbol-id <lua-symbol-id> --environment <client-pin> --flow --depth 1 --limit 50 --max-lines 120 --format json
30
- ```
31
-
32
- `flow.coverage.state=bounded_complete` applies only to the selected closure and
33
- modeled operations. Read `flow.boundaries` and the outer coverage reasons as well
34
- as findings. Event payload metadata is retained, but handler registration and
35
- payload routing are outside the current flow scope; inspect that missing link
36
- directly or carry it into a bounded live hypothesis. A larger depth cannot resolve
37
- an unsupported edge.
38
-
39
- Trace the relevant value through assignments, table fields and function arguments
40
- or returns, preserving each step's original location. Confirm symbol identity and
41
- loading context before crossing files. A guard applies only to the checked value
42
- on the relevant branch before reassignment; merely calling `issecretvalue` does
43
- not establish that later operations are safe. Check the consuming operation's
44
- versioned restrictions before reporting a violation. Mark dynamic calls, unknown
45
- aliases, missing dependencies and truncation as gaps rather than inventing edges.
46
-
47
- Keep secret-value propagation separate from secure execution taint. A stack made
48
- entirely of Blizzard frames is not sufficient to identify who caused the taint;
49
- static hook/write candidates need further evidence. Source-only research does
50
- not authorize game input. For deep investigation with live work in scope, carry
51
- the fixed source locations, suspected value path, conditions and missing links
52
- into [the live hypothesis workflow](live-investigation.md#test-source-hypotheses).
53
- Continue with existing error evidence and a bounded check that distinguishes the
54
- remaining explanations; do not stop at an unresolved static path when live can
55
- answer the next question. Feed observed conditions back into the source analysis.
56
-
57
- Keep proposed checks within the same trust boundary: observing a value does not
58
- authorize writing protected frames or Blizzard tables, replacing secure handlers,
59
- or extracting a secret through coercion. Combat state and permitted argument
60
- conditions belong to the hypothesis, not assumptions used to make it pass.
61
-
62
- Finish with the supported path and restriction, a minimal correction when
63
- justified, and any conditions still requiring verification. Distinguish observed
64
- runtime evidence, source deductions and unresolved hypotheses. Do not treat no
65
- findings as proof of safety, or propose coercion/default substitution as a generic
66
- way to remove secrecy. When the path cannot be established, state the missing
67
- link and the evidence needed to resolve it.