lycheedev 1.2.0 → 2.0.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/LICENSE +49 -0
- package/README.md +45 -0
- package/THIRD_PARTY_NOTICES +812 -0
- package/bin/lycheedev.mjs +56 -0
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +12 -33
- package/payload/addon/Bridge/CaptureWriter.lua +154 -0
- package/payload/addon/Bridge/Definitions.lua +3 -0
- package/payload/addon/Bridge/Identity.lua +127 -0
- package/{vendor/addon/Libs/AutomationQR.lua → payload/addon/Bridge/MatrixSymbol.lua} +23 -30
- package/payload/addon/Bridge/ProbeQueue.lua +136 -0
- package/payload/addon/Bridge/ProbeRunner.lua +128 -0
- package/payload/addon/Bridge/ReceiptView.lua +160 -0
- package/payload/addon/Bridge/Reentry.lua +192 -0
- package/payload/addon/Bridge/ReportStore.lua +153 -0
- package/payload/addon/Bridge/Session.lua +163 -0
- package/payload/addon/Clients/Evergreen.lua +2 -0
- package/payload/addon/Clients/Live.lua +2 -0
- package/payload/addon/Clients/Pandaria.lua +2 -0
- package/payload/addon/Clients/Titan.lua +2 -0
- package/payload/addon/Core/Compat.lua +59 -0
- package/payload/addon/Core/Controls.lua +168 -0
- package/{vendor/addon/Core/Bootstrap.lua → payload/addon/Core/Execute.lua} +12 -23
- package/{vendor → payload}/addon/Core/Inspector.lua +19 -235
- package/{vendor → payload}/addon/Core/Locale.lua +128 -93
- package/{vendor → payload}/addon/Core/Locale_enUS.lua +128 -95
- package/payload/addon/Core/Persistence.lua +58 -0
- package/payload/addon/Core/Platform.lua +58 -0
- package/payload/addon/Core/Runtime.lua +25 -0
- package/payload/addon/Core/Safety.lua +56 -0
- package/{vendor → payload}/addon/Core/Serializer.lua +18 -6
- package/payload/addon/Core/Stores.lua +611 -0
- package/payload/addon/Lychee Dev_Forever.toc +52 -0
- package/payload/addon/Lychee Dev_Mainline.toc +52 -0
- package/payload/addon/Lychee Dev_Mists.toc +52 -0
- package/payload/addon/Lychee Dev_Wrath.toc +52 -0
- package/payload/addon/Modules/AutomationView.lua +393 -0
- package/{vendor → payload}/addon/Modules/Diagnostics.lua +92 -36
- package/{vendor → payload}/addon/Modules/Events/Catalog.lua +9 -0
- package/{vendor → payload}/addon/Modules/Events/Monitor.lua +45 -5
- package/payload/addon/Modules/FunctionTrace.lua +150 -0
- package/{vendor → payload}/addon/Modules/ObjectInspector.lua +105 -31
- package/{vendor → payload}/addon/UI/Export.lua +64 -34
- package/{vendor → payload}/addon/UI/Pages/About.lua +26 -14
- package/payload/addon/UI/Pages/Automation.lua +446 -0
- package/payload/addon/UI/Pages/Diagnostics.lua +402 -0
- package/{vendor/addon/UI/Features.lua → payload/addon/UI/Pages/Events.lua} +192 -302
- package/{vendor → payload}/addon/UI/Pages/ExportRecords.lua +213 -132
- package/{vendor → payload}/addon/UI/Pages/Object.lua +229 -121
- package/payload/addon/UI/Pages/Run.lua +423 -0
- package/payload/addon/UI/Pages/Trace.lua +314 -0
- package/payload/addon/UI/TreeView.lua +246 -0
- package/{vendor/addon/UI/MainWindow.lua → payload/addon/UI/Widgets.lua} +89 -529
- package/payload/addon/UI/Window.lua +425 -0
- package/payload/skill/SKILL.md +87 -0
- package/payload/skill/agents/openai.yaml +7 -0
- package/payload/skill/references/addon-validation.md +42 -0
- package/payload/skill/references/asset-export.md +109 -0
- package/payload/skill/references/commands.md +169 -0
- package/payload/skill/references/data-investigation.md +242 -0
- package/payload/skill/references/error-diagnosis.md +41 -0
- package/payload/skill/references/installation.md +18 -0
- package/payload/skill/references/live-investigation.md +129 -0
- package/payload/skill/references/source-research.md +82 -0
- package/payload/skill/scripts/lycheedev.mjs +59 -0
- package/release.json +346 -0
- package/bin/lycheedev.js +0 -746
- package/src/addon.js +0 -95
- package/src/config.js +0 -68
- package/src/doctor.js +0 -126
- package/src/install.js +0 -145
- package/src/paths.js +0 -93
- package/src/py/instances.py +0 -165
- package/src/python.js +0 -111
- package/src/skill.js +0 -48
- package/src/wow.js +0 -541
- package/vendor/addon/Core/Clients/Forever.lua +0 -9
- package/vendor/addon/Core/Clients/Mainline.lua +0 -9
- package/vendor/addon/Core/Clients/Mists.lua +0 -9
- package/vendor/addon/Core/Clients/Titan.lua +0 -9
- package/vendor/addon/Core/Compatibility.lua +0 -43
- package/vendor/addon/Core/Database.lua +0 -859
- package/vendor/addon/Core/Safety.lua +0 -42
- package/vendor/addon/Lychee Dev_Forever.toc +0 -44
- package/vendor/addon/Lychee Dev_Mainline.toc +0 -44
- package/vendor/addon/Lychee Dev_Mists.toc +0 -44
- package/vendor/addon/Lychee Dev_Wrath.toc +0 -44
- package/vendor/addon/Modules/Automation/Controller.lua +0 -896
- package/vendor/addon/Modules/Automation/Reload.lua +0 -101
- package/vendor/addon/Modules/Automation/Report.lua +0 -409
- package/vendor/addon/Modules/Automation/auto/auto.lua +0 -12
- package/vendor/addon/Modules/FunctionTrace.lua +0 -85
- package/vendor/addon/UI/AutomationOverlay.lua +0 -253
- package/vendor/addon/UI/Pages/Automation.lua +0 -417
- package/vendor/addon/UI/Pages/Diagnostics.lua +0 -289
- package/vendor/addon/UI/Pages/Trace.lua +0 -165
- package/vendor/skill/SKILL.md +0 -44
- package/vendor/skill/agents/openai.yaml +0 -4
- package/vendor/skill/references/automation.md +0 -130
- package/vendor/skill/references/clients.md +0 -51
- package/vendor/skill/references/runtime-investigations.md +0 -104
- package/vendor/skill/scripts/automation/__init__.py +0 -1
- package/vendor/skill/scripts/automation/registry.py +0 -516
- package/vendor/skill/scripts/automation/reload.py +0 -121
- package/vendor/skill/scripts/automation/saved_variables.py +0 -438
- package/vendor/skill/scripts/automation/session.py +0 -207
- package/vendor/skill/scripts/automation/windows.py +0 -792
- package/vendor/skill/scripts/automation.py +0 -1067
- package/vendor/skill/scripts/requirements.txt +0 -13
- package/vendor/skill/scripts/selftest_offline.py +0 -1061
- package/vendor/skill/scripts/test_input_safety.py +0 -132
- package/vendor/skill/scripts/test_reload.py +0 -120
- /package/{vendor → payload}/addon/Media/GitHub.png +0 -0
- /package/{vendor → payload}/addon/Media/Logo.png +0 -0
- /package/{vendor → payload}/addon/Modules/Events/CatalogData_Forever.lua +0 -0
- /package/{vendor → payload}/addon/Modules/Events/CatalogData_Mainline.lua +0 -0
- /package/{vendor → payload}/addon/Modules/Events/CatalogData_Mists.lua +0 -0
- /package/{vendor → payload}/addon/Modules/Events/CatalogData_Titan.lua +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<!-- Generated from `lycheedev describe --format json`. Regenerate after any
|
|
2
|
+
command-surface change; tools/skill-contract.mjs fails the build on drift.
|
|
3
|
+
Do not edit by hand. -->
|
|
4
|
+
|
|
5
|
+
# Command reference
|
|
6
|
+
|
|
7
|
+
62 implemented commands. Every command accepts `--format text|json|jsonl`;
|
|
8
|
+
`--help` works on the root and on any command. Commands whose summary mentions a
|
|
9
|
+
snapshot accept `--snapshot <pin>` with project-lock fallback (`--project <directory>`);
|
|
10
|
+
workspace commands accept `--home <root>`.
|
|
11
|
+
|
|
12
|
+
Read the JSON envelope, not just the exit code: `ok` reports the contract outcome,
|
|
13
|
+
`error.code`/`error.stage` the failure, `captures` the evidence references, `warnings`
|
|
14
|
+
partial/truncated boundaries.
|
|
15
|
+
|
|
16
|
+
## addon
|
|
17
|
+
|
|
18
|
+
- `addon status` — read-only. Inspect addon files with --path <addon-directory>, or resolve a supported client with --installation <client-directory>.
|
|
19
|
+
Flags: `--path <addon-directory>`, `--installation <client-directory>`.
|
|
20
|
+
- `addon install` — mutates. Install: --release <distribution-root> --installation <client-directory>; --output <archive> upgrades; --resume --installation <client> --output <archive> recovers without --release.
|
|
21
|
+
Flags: `--release <distribution-root>`, `--installation <client-directory>`, `--output <archive>`, `--resume`.
|
|
22
|
+
- `addon remove` — mutates. Archive an unchanged owned addon: --installation <client-directory> --output <recovery-directory>; never deletes SavedVariables.
|
|
23
|
+
Flags: `--installation <client-directory>`, `--output <recovery-directory>`.
|
|
24
|
+
|
|
25
|
+
## asset
|
|
26
|
+
|
|
27
|
+
- `asset inspect` — mutates. Verify CASC file: --snapshot <pin> (--installation <client-or-game-root> | --cdn) --file-id <id> [--max-bytes <n>] [--offline]; archive original bytes; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
28
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--file-id <id>`, `--max-bytes <n>`, `--offline`.
|
|
29
|
+
- `asset export` — mutates. Export CASC file: --snapshot <pin> (--installation <client-or-game-root> | --cdn) --file-id <id> --output <file> [--encoding raw|png|webp] [--mipmap <0..15>] [--channels <rgba-subset>] [--max-pixels <n>] [--overwrite] [--max-bytes <n>] [--offline]; raw default, BLP2 image conversion, existing parent required; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
30
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--file-id <id>`, `--output <file>`, `--encoding raw|png|webp`, `--mipmap <0..15>`, `--channels <rgba-subset>`, `--max-pixels <n>`, `--overwrite`, `--max-bytes <n>`, `--offline`.
|
|
31
|
+
|
|
32
|
+
## cache
|
|
33
|
+
|
|
34
|
+
- `cache status` — read-only. Report managed cache accounting, protection visibility and the configured limit.
|
|
35
|
+
- `cache verify` — read-only. Verify every managed cache object against its content hash; strictly read-only, repairs and deletes nothing.
|
|
36
|
+
- `cache prune` — mutates. Reclaim ordinary cache toward --target-bytes <n> (zero reclaims all ordinary cache), capped by --max-objects <n>; --uncommitted also reclaims staging files; --dry-run reports without deleting; protected and in-use objects are always skipped.
|
|
37
|
+
Flags: `--target-bytes <n>`, `--max-objects <n>`, `--uncommitted`, `--dry-run`.
|
|
38
|
+
|
|
39
|
+
## config
|
|
40
|
+
|
|
41
|
+
- `config show` — read-only. Read the workspace user preference and resource budget document; a missing document reports the documented defaults.
|
|
42
|
+
- `config set` — mutates. Update the workspace budget: --cache-max-bytes <n> and/or --download-workers <n>; at least one flag is required.
|
|
43
|
+
Flags: `--cache-max-bytes <n>`, `--download-workers <n>`.
|
|
44
|
+
|
|
45
|
+
## data
|
|
46
|
+
|
|
47
|
+
- `data hotfix` — mutates. Inspect independent Hotfix records with an explicit source: --source <wago|dbcache|raidbots>. dbcache reads a pinned --snapshot <pin> (--dbcache <DBCache.bin> | --from <cache-capture>); wago queries the remote record set from --product/--build/--region/--locale with an optional --snapshot parent; raidbots reads --raidbots <DBCache.bin> under 30 days. Filters: --table --table-hash --record --push --status --region-id --search and wago --from/--to; --latest selects the largest matching push batch before pagination; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
48
|
+
Flags: `--project <directory>`, `--source <wago|dbcache|raidbots>`, `--snapshot <pin>`, `--dbcache <DBCache.bin>`, `--raidbots <DBCache.bin>`, `--from <cache-capture-or-time>`, `--to <time>`, `--product <retail|classic|titan|forever>`, `--build <full-build>`, `--region <us|eu|cn|kr|tw>`, `--locale <locale>`, `--table <name>`, `--table-hash <8-hex>`, `--record <n>`, `--push <n>`, `--status <0-255>`, `--region-id <n>`, `--search <text>`, `--latest`, `--offline`, `--limit <1-200>`, `--cursor <opaque>`, `--page <n>`, `--after-index <n>`, `--max-pages <n>`, `--max-requests <n>`, `--max-bytes <n>`, `--encoding csv`, `--output <file>`.
|
|
49
|
+
- `data sql` — mutates. Query pinned static tables: --snapshot <pin> (--installation <client-or-game-root> | --cdn) --file <query.json> [--max-bytes <n>] [--offline]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
50
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--file <query.json>`, `--max-bytes <n>`, `--offline`.
|
|
51
|
+
- `data db2` — mutates. Read typed rows: --snapshot <pin> (--installation <client-or-game-root> | --cdn) --table <name> [--id <n> | --limit <n> --after-id <n>] [--max-bytes <n>] [--offline]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
52
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--table <name>`, `--id <n>`, `--limit <n>`, `--after-id <n>`, `--max-bytes <n>`, `--offline`.
|
|
53
|
+
- `data db2 schema <Table>` — mutates. Read parsed table schema fields, keys and relationship columns: data db2 schema <Table>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
54
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`.
|
|
55
|
+
- `data db2 search <Table>` — mutates. Case-insensitive substring search over one field: data db2 search <Table> --field <name> --query <text> --limit <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
56
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--field <name>`, `--query <text>`, `--limit <n>`.
|
|
57
|
+
- `data db2 foreign-key <Table>` — mutates. Select rows by one foreign-key field and value with a mandatory bound: data db2 foreign-key <Table> --field <name> --value <n> --limit <1-5000>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
58
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--field <name>`, `--value <n>`, `--limit <n>`.
|
|
59
|
+
- `data db2 stream <Table>` — mutates. Stream bounded table rows as typed JSONL begin/record/end frames (requires --format jsonl): data db2 stream <Table> [--fields <a,b>] [--filter <field=value>] --limit <n>; only a legal end frame plus exit 0 is a complete success; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
60
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--fields <a,b>`, `--filter <field=value>`, `--limit <n>`.
|
|
61
|
+
- `data spell info` — mutates. Resolve the bounded trigger and description-reference closure around one spell: --spell-id <n> [--max-depth <n>]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
62
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--spell-id <n>`, `--max-depth <n>`.
|
|
63
|
+
- `data spell auras` — mutates. Report aura-effect presence for one spell: --spell-id <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
64
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--spell-id <n>`.
|
|
65
|
+
- `data spell summons` — mutates. List summon effects of one spell, optionally filtered to one NPC: --spell-id <n> [--npc-id <n>]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
66
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--spell-id <n>`, `--npc-id <n>`.
|
|
67
|
+
- `data item get` — mutates. Read one item summary and slot name: --item-id <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
68
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--item-id <n>`.
|
|
69
|
+
- `data item models` — mutates. Resolve model and texture file IDs for one item: --item-id <n> [--race-id <n> --gender <n>]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
70
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--item-id <n>`, `--race-id <n>`, `--gender <n>`.
|
|
71
|
+
- `data item geosets` — mutates. Read geoset and helmet-hide data for one item: --item-id <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
72
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--item-id <n>`.
|
|
73
|
+
- `data item textures` — mutates. Read character texture sections for one item: --item-id <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
74
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--item-id <n>`.
|
|
75
|
+
- `data creature display` — mutates. Resolve one creature display by exactly one key: (--display-id <n> | --file-data-id <n>); omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
76
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--display-id <n>`, `--file-data-id <n>`.
|
|
77
|
+
- `data creature model` — mutates. List every display of one model file with variants: --file-data-id <n>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
78
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--file-data-id <n>`.
|
|
79
|
+
- `data encounter get` — mutates. Build the bounded journal encounter section tree with related spells and the relation manifest: --journal-encounter-id <n> [--max-depth <n>]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
80
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--journal-encounter-id <n>`, `--max-depth <n>`.
|
|
81
|
+
- `data decor list` — mutates. List house decor rows in ascending ID order with a mandatory bound: --limit <1-5000>; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
82
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--limit <n>`.
|
|
83
|
+
- `data decor get` — mutates. Resolve one decor by exactly one key: (--id <decor-id> | --item-id <n> | --model-file-data-id <n>); omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
84
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--installation <client-or-game-root>`, `--cdn`, `--offline`, `--max-bytes <n>`, `--id <n>`, `--item-id <n>`, `--model-file-data-id <n>`.
|
|
85
|
+
|
|
86
|
+
## describe
|
|
87
|
+
|
|
88
|
+
- `describe` — read-only. Read implemented command contracts.
|
|
89
|
+
|
|
90
|
+
## doctor
|
|
91
|
+
|
|
92
|
+
- `doctor` — read-only. Aggregate read-only workspace, target catalog and source-mirror health checks; the mirror check joins only when the nearest project declares a product, and exit 3 reports that at least one check found an error.
|
|
93
|
+
Flags: `--offline`.
|
|
94
|
+
|
|
95
|
+
## evidence
|
|
96
|
+
|
|
97
|
+
- `evidence show <capture-id>` — read-only. Read a capture manifest: evidence show <capture-id>.
|
|
98
|
+
- `evidence verify <capture-id>` — read-only. Verify manifest and original bytes: evidence verify <capture-id>.
|
|
99
|
+
- `evidence list` — read-only. List archived capture manifests in ID order with a bounded page.
|
|
100
|
+
Flags: `--limit <n>`.
|
|
101
|
+
|
|
102
|
+
## init
|
|
103
|
+
|
|
104
|
+
- `init` — mutates. Create a new-format workspace without importing old data; --plan resolves the fresh-isolation plan without changing anything, --fresh isolates an occupied legacy root into a deterministic sibling archive first, --resume completes an interrupted archive switch.
|
|
105
|
+
Flags: `--plan`, `--fresh`, `--resume`.
|
|
106
|
+
|
|
107
|
+
## live
|
|
108
|
+
|
|
109
|
+
- `live run` — mutates. Run a bounded probe: --session <session-id> --file <probe.lua> [--account <account>]; discovers a unique stored account for the verified character unless explicit; retains operation ID on failure.
|
|
110
|
+
Flags: `--session <session-id>`, `--account <account>`, `--file <probe.lua>`.
|
|
111
|
+
- `live instances` — mutates. Discover supported installations under known roots and every running game window with its identity state (installed/running; identified/busy/no_actor/identity_unreadable); sends exactly one fixed identity trigger per running window and no other input; output carries no protocol fields.
|
|
112
|
+
Flags: `--installation <client-or-game-root>`.
|
|
113
|
+
- `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.
|
|
114
|
+
Flags: `--project <directory>`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--pid <pid>`, `--installation <client>`, `--session <session-id>`, `--capture-area <window|x,y,width,height>`.
|
|
115
|
+
- `live bind` — mutates. Observe /dev connect in the selected game and save a connection: --snapshot <pin>; unique window discovered automatically, optional --pid/--installation/--character/--realm filters; whole-window capture by default; never types; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
116
|
+
Flags: `--project <directory>`, `--installation <client>`, `--pid <pid>`, `--snapshot <pin>`, `--character <name>`, `--realm <realm>`, `--capture-area <window|x,y,width,height>`.
|
|
117
|
+
- `live status <operation-id>` — read-only. Read persisted work without sending input: live status <operation-id>.
|
|
118
|
+
- `live resume <operation-id>` — mutates. Recover live resume <operation-id> using its saved connection; revalidates before new input and never repeats submitted work; completed work performs no game input.
|
|
119
|
+
- `live session <session-id>` — read-only. Verify a retained session and its evidence: live session <session-id>; does not reconnect or authorize input.
|
|
120
|
+
|
|
121
|
+
## project
|
|
122
|
+
|
|
123
|
+
- `project init` — mutates. Declare a project product: --product <track> [--path <directory>]; creates lycheedev.json without choosing latest.
|
|
124
|
+
Flags: `--product <track>`, `--path <directory>`.
|
|
125
|
+
- `project lock` — mutates. Save an existing fixed --snapshot <pin> in lycheedev.lock.json [--path <directory>]; replaces the previous known-format lock.
|
|
126
|
+
Flags: `--snapshot <pin>`, `--path <directory>`.
|
|
127
|
+
- `project status` — read-only. Read project declaration and lock [--path <directory>]; no workspace or network required.
|
|
128
|
+
Flags: `--path <directory>`.
|
|
129
|
+
|
|
130
|
+
## skill
|
|
131
|
+
|
|
132
|
+
- `skill install` — mutates. Install: --release <distribution-root> --path <parent/lycheedev>; add --output <archive> to upgrade; --resume --path <target> --output <archive> resumes without --release.
|
|
133
|
+
Flags: `--release <distribution-root>`, `--path <target>`, `--output <archive>`, `--resume`.
|
|
134
|
+
- `skill status` — read-only. Inspect skill ownership and files: --path <installed-directory>.
|
|
135
|
+
Flags: `--path <installed-directory>`.
|
|
136
|
+
- `skill remove` — mutates. Archive an unchanged owned skill: --path <parent/lycheedev> --output <recovery-directory outside parent>; deletes nothing.
|
|
137
|
+
Flags: `--path <parent/lycheedev>`, `--output <recovery-directory>`.
|
|
138
|
+
|
|
139
|
+
## source
|
|
140
|
+
|
|
141
|
+
- `source list` — read-only. List source repositories and product branches.
|
|
142
|
+
- `source sync` — mutates. Fetch --source <key> --product <track> [--ref <full-ref-or-commit>] and return a fixed snapshot.
|
|
143
|
+
Flags: `--source <key>`, `--product <track>`, `--ref <full-ref-or-commit>`.
|
|
144
|
+
- `source inspect` — mutates. Read --snapshot <pin-id> --path <file> [--line <n> --count <n>] and archive full source evidence; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
145
|
+
Flags: `--project <directory>`, `--snapshot <pin-id>`, `--path <file>`, `--line <n>`, `--count <n>`.
|
|
146
|
+
- `source index` — mutates. Build syntax index for --snapshot <pin-id>, retaining parse diagnostics; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
147
|
+
Flags: `--project <directory>`, `--snapshot <pin-id>`.
|
|
148
|
+
- `source query <term>` — mutates. Find exact symbol/relation names: source query <term> --snapshot <pin-id> [--limit <n>]; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
149
|
+
Flags: `--project <directory>`, `--snapshot <pin-id>`, `--limit <n>`.
|
|
150
|
+
- `source diff` — mutates. Compare --from <pin-id> --to <pin-id> [--limit <n> per change category].
|
|
151
|
+
Flags: `--from <pin-id>`, `--to <pin-id>`, `--limit <n>`.
|
|
152
|
+
- `source validate` — mutates. Check --path <addon-root> --toc <relative-manifest> --snapshot <pin-id>; report unresolved static coverage; omitted --snapshot uses --project or the nearest parent project lock; explicit snapshot wins.
|
|
153
|
+
Flags: `--project <directory>`, `--path <addon-root>`, `--toc <relative-manifest>`, `--snapshot <pin-id>`.
|
|
154
|
+
|
|
155
|
+
## target
|
|
156
|
+
|
|
157
|
+
- `target resolve` — mutates. Pin data identity from --installation <client> or remote --product <track>, with --region and --locale; remote --build requires that exact currently advertised build. Optional --definitions/--from/--offline; --file pins explicit identities instead. Does not download data archives.
|
|
158
|
+
Flags: `--file <selection.json>`, `--installation <client-directory>`, `--product <retail|classic|titan|forever>`, `--build <full-build>`, `--region <us|eu|cn|kr|tw>`, `--locale <locale>`, `--definitions <commit-or-full-ref>`, `--from <parent-pin>`, `--offline`.
|
|
159
|
+
- `target show <pin-id>` — read-only. Read a fixed selection: target show <pin-id>.
|
|
160
|
+
- `target list` — read-only. List every named target configuration in name order; a brand new workspace has no targets.
|
|
161
|
+
- `target add <name>` — mutates. Create or explicitly replace one named target: target add <name> --product <track> --region <region> --locale <locale> with exactly one of --installation <client> or --remote; optional --build <full-build> pins that exact release; --replace confirms replacement.
|
|
162
|
+
Flags: `--product <retail|classic|titan|forever>`, `--region <us|eu|cn|kr|tw>`, `--locale <locale>`, `--build <full-build>`, `--installation <client-directory>`, `--remote`, `--replace`.
|
|
163
|
+
- `target remove <name>` — mutates. Remove one named target and its reference ledger: target remove <name>; resolved pins stay intact, running operations block removal.
|
|
164
|
+
- `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.
|
|
165
|
+
Flags: `--region <us|eu|cn|kr|tw>`, `--offline`.
|
|
166
|
+
|
|
167
|
+
## version
|
|
168
|
+
|
|
169
|
+
- `version` — read-only. Inspect the native toolkit build.
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# Data investigation
|
|
2
|
+
|
|
3
|
+
Use this workflow for static game tables, read-only SQL, semantic records,
|
|
4
|
+
independent change records, and reproducible data comparisons.
|
|
5
|
+
|
|
6
|
+
## Fix the data identity
|
|
7
|
+
|
|
8
|
+
Prepare a local target from the selected client directory; do not construct
|
|
9
|
+
CASC keys or a DataPin by hand:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
lycheedev target resolve --installation <client-directory> --region cn --locale zhCN --format json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Region and locale are explicit choices; use those requested for the task.
|
|
16
|
+
The CLI reads product/build/config identities from the installation and resolves
|
|
17
|
+
WoWDBDefs `refs/heads/master` once to an exact commit. Use `--definitions` for a
|
|
18
|
+
specific 40-hex commit or full branch/tag ref. `--offline` resolves a symbolic
|
|
19
|
+
ref only from its existing workspace record; an explicit commit needs no
|
|
20
|
+
network. Table definitions are prepared on first query, not by target resolve.
|
|
21
|
+
|
|
22
|
+
The result is a fixed pin ID. Carry it between calls and agents. `--from <pin>`
|
|
23
|
+
adds data to a source-only pin without modifying the parent; if it already has
|
|
24
|
+
data, the existing definition commit is retained by default and conflicting
|
|
25
|
+
fixed identities fail. Do not resolve a fixed target again as latest.
|
|
26
|
+
|
|
27
|
+
The target evidence records the observed client/catalog and archived config
|
|
28
|
+
bytes. It does not prove that every table or locale is present, or that the
|
|
29
|
+
game is running. `target resolve --file` remains available for already-resolved
|
|
30
|
+
identities, but cannot be mixed with preparation flags.
|
|
31
|
+
|
|
32
|
+
For a remote product, use the same resolver without an installation path:
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
lycheedev target resolve --product retail --region cn --locale zhCN --format json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
It records the selected region's advertised build, verified build/CDN configs,
|
|
39
|
+
and exact definition commit. `--build <full-build>` constrains that observation;
|
|
40
|
+
it does not search historical builds or fall back to a neighboring one. Online
|
|
41
|
+
failures do not silently reuse old catalogs. `--offline` requires a previously
|
|
42
|
+
recorded catalog pair and configurations in this workspace; preserve the returned
|
|
43
|
+
`context.observedAt` and do not call an offline observation the current server
|
|
44
|
+
state. An exact `--definitions` commit alone does not supply remote catalogs.
|
|
45
|
+
|
|
46
|
+
Remote target preparation does not download game archives or prove content
|
|
47
|
+
availability. DB2/SQL/asset queries accept either `--installation <directory>`
|
|
48
|
+
or `--cdn` against the same pin; do not combine them. In target resolution,
|
|
49
|
+
`--installation`, `--product`, and `--file` are alternative
|
|
50
|
+
selection modes, not overrides of each other.
|
|
51
|
+
|
|
52
|
+
## Implemented DB2 reading
|
|
53
|
+
|
|
54
|
+
For a known table and record ID in an explicitly selected local installation:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
lycheedev data db2 --snapshot <pin> --installation <game-root> --table <name> --id <id> --format json
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For the same query from CDN, replace the installation selector with `--cdn`.
|
|
61
|
+
Add `--offline` to prohibit all network access and reuse only this workspace's
|
|
62
|
+
verified configuration, fragment and definition caches. Missing cache data fails;
|
|
63
|
+
the command does not fall back to a local installation or change the pin.
|
|
64
|
+
The initial archive lookup can be slow when the provider lacks a group index.
|
|
65
|
+
|
|
66
|
+
`game-root` contains `.build.info` and `Data/`; the same selected client directory
|
|
67
|
+
used in target resolution is also accepted and checked against the pin. The command selects the DB2
|
|
68
|
+
FileDataID from the pinned WoWDBDefs manifest, verifies the table hash in the
|
|
69
|
+
actual file, and binds its exact layout hash to the definition. It returns
|
|
70
|
+
`row`, `schema`, `layoutHash`, raw-source blob references and a JSON capture.
|
|
71
|
+
The capture is complete for that one requested record, not for the whole table.
|
|
72
|
+
Record ID zero is allowed. A missing record is an error, not an empty full-table
|
|
73
|
+
query. Field verification/foreign-key metadata in `schema` is retained evidence,
|
|
74
|
+
not proof that every inferred DBD field meaning is correct.
|
|
75
|
+
|
|
76
|
+
Omit `--id` to read a bounded page (default 50, maximum 200 rows):
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
lycheedev data db2 --snapshot <pin> --installation <game-root> --table <name> --limit 50 --format json
|
|
80
|
+
lycheedev data db2 --snapshot <same-pin> --installation <same-root> --table <same-name> --limit 50 --after-id <page.next> --offline --format json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Pages use ascending logical IDs, including copies. Omitted `--after-id` includes
|
|
84
|
+
ID zero; an explicit cursor excludes that ID. Continue only when `page.more`
|
|
85
|
+
is true, carrying `page.next` with the same snapshot and table. `--id` cannot
|
|
86
|
+
be combined with `--limit` or `--after-id`. Empty pages are valid. Preserve
|
|
87
|
+
each page's capture and cursor; a suffix ending at the last record is still not
|
|
88
|
+
the whole table. Captures mark full-table completion only when a first page
|
|
89
|
+
contains all rows. `truncated` denotes more rows after this page; false does
|
|
90
|
+
not imply that earlier rows were included.
|
|
91
|
+
|
|
92
|
+
On a cache miss, the command reads only manifest/DBD files at the DataPin's
|
|
93
|
+
exact definition commit from WoWDBDefs; it does not fetch a newer branch. Local
|
|
94
|
+
mode never fetches CDN game data. Add `--offline` to prohibit downloads; missing or corrupt
|
|
95
|
+
cached definitions fail explicitly. Cache bytes are rehashed before use. No
|
|
96
|
+
game input or game installation writes occur. Hotfix records are not overlaid.
|
|
97
|
+
|
|
98
|
+
The file limit is `--max-bytes` (default 128 MiB, maximum 512 MiB, applied to
|
|
99
|
+
both encoded and decoded file sizes). Parser budgets additionally bound metadata
|
|
100
|
+
to 64 MiB, indexed physical/copy rows to one million, columns/partitions to 4096,
|
|
101
|
+
and decoded row text to 1 MiB. A page's serialized row array is capped at 8 MiB;
|
|
102
|
+
any row failure or budget overflow returns no partial page. Page selection uses
|
|
103
|
+
bounded extra memory, but each CLI invocation currently reopens the table and
|
|
104
|
+
checks its selected source. Encrypted-file key provisioning is not available
|
|
105
|
+
from this command yet.
|
|
106
|
+
|
|
107
|
+
## Implemented static SQL
|
|
108
|
+
|
|
109
|
+
Create a UTF-8 JSON request file (at most 1 MiB), not a raw `.sql` file:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{"sql":"SELECT ID, Filename FROM ChrClasses WHERE ID=:id","parameters":{"id":1}}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
lycheedev data sql --snapshot <pin> --installation <game-root> --file <query.json> --format json
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Parameters must exactly match named SQL parameters and contain only JSON scalar
|
|
120
|
+
values. Integer tokens retain 64-bit precision; avoid generating them through
|
|
121
|
+
a floating-point JSON intermediary. Duplicate or unknown request fields fail.
|
|
122
|
+
Use SQL LIMIT/OFFSET, not CLI `--limit`. `--offline` and `--max-bytes` have the
|
|
123
|
+
same cache and per-file meanings as DB2 reading. Replace `--installation` with
|
|
124
|
+
`--cdn` for explicitly selected remote content.
|
|
125
|
+
|
|
126
|
+
Only static tables are available. Qualified `static.Table` bypasses CTE
|
|
127
|
+
names; no Hotfix overlay or implicit source fallback occurs. Query output contains `query`,
|
|
128
|
+
`result` (ordered `columns` and positional `rows`, or `plan` for EXPLAIN), and
|
|
129
|
+
`sources` with each prepared table's provenance. Verify the returned capture
|
|
130
|
+
with `evidence verify <capture-id>`. Complete means the requested query result,
|
|
131
|
+
including any SQL LIMIT, not an unrestricted whole-table export.
|
|
132
|
+
|
|
133
|
+
Supported paths include joins, grouping, ordinary CTEs, UNION ALL, correlated
|
|
134
|
+
expression subqueries (also in GROUP BY and aggregate inputs), and
|
|
135
|
+
one-seed/one-member recursive CTEs. Complex recursive forms still fail explicitly.
|
|
136
|
+
DB2 array fields become quoted scalar column names such as `"Field[0]"`.
|
|
137
|
+
Text functions require text; conversions and integer overflow fail explicitly.
|
|
138
|
+
EXPLAIN binds sources without scanning rows; it may still prepare table
|
|
139
|
+
bytes and definitions. EXPLAIN ANALYZE executes and reports scan counts/work/
|
|
140
|
+
charged bytes; charged bytes are not process peak memory.
|
|
141
|
+
|
|
142
|
+
Budgets: at most 32 physical tables, 512 MiB cumulative raw table content,
|
|
143
|
+
10 million execution work units, 64 MiB execution accounting and 16 MiB JSON
|
|
144
|
+
evidence. Budget failures yield no partial query result. Narrow the query when
|
|
145
|
+
appropriate to the request; do not change the pinned build or imply full
|
|
146
|
+
coverage from a narrower successful query.
|
|
147
|
+
|
|
148
|
+
SQL errors use `error.stage: query` with `query.invalid_syntax` or
|
|
149
|
+
`query.unresolved_binding` (exit 2), `query.unsupported_expression` or
|
|
150
|
+
`query.budget_exceeded` (exit 3), and type/range/cardinality faults (exit 4).
|
|
151
|
+
Syntax faults include `error.location` with byte offset and line/column.
|
|
152
|
+
Correct the request or report the limitation; repeating an unchanged query
|
|
153
|
+
does not resolve these failures. Source/cache/I/O faults retain their own codes.
|
|
154
|
+
|
|
155
|
+
Domain commands are not implemented in this development
|
|
156
|
+
build. Answer a semantic question with the available static tables only when
|
|
157
|
+
their schema and relationships support it; otherwise report the missing
|
|
158
|
+
capability. A static table result is not a substitute for requested Hotfix data.
|
|
159
|
+
Preserve source, table/record, locale, filters, row counts and capture hashes.
|
|
160
|
+
|
|
161
|
+
## Local Hotfix records
|
|
162
|
+
|
|
163
|
+
Use `data hotfix` with an explicit `--source` for independent records, not for
|
|
164
|
+
an effective static table. Local caches use `--source dbcache`:
|
|
165
|
+
|
|
166
|
+
```text
|
|
167
|
+
lycheedev data hotfix --source dbcache --snapshot <data-pin> --dbcache <DBCache.bin> --limit 50 --format json
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
The command archives the original bytes, checks the cache build number against
|
|
171
|
+
the data pin, and returns a derived `snapshot` containing the cache digest and
|
|
172
|
+
capture time. Keep `source.id`, that snapshot, and each result capture. It does
|
|
173
|
+
not search old tool directories, read SavedVariables, contact a provider, or
|
|
174
|
+
change static DB2 queries. Product, locale and region are selected context;
|
|
175
|
+
the file alone does not authenticate them. A record's numeric `region`, when
|
|
176
|
+
present in its format, is preserved separately.
|
|
177
|
+
|
|
178
|
+
For named fields, add `--table <name>` and optionally `--id <record-id>`:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
lycheedev data hotfix --source dbcache --snapshot <data-pin> --dbcache <DBCache.bin> --table ItemSparse --record <id> --format json
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The command uses the data pin's exact WoWDBDefs commit and build. It returns
|
|
185
|
+
`sources`, the selected `definition`, and each valid payload's `fields` alongside
|
|
186
|
+
`payloadHex`. `--offline` prohibits definition downloads. Missing or ambiguous
|
|
187
|
+
build definitions, colliding table hashes, invalid UTF-8, trailing/truncated
|
|
188
|
+
payload and inline ID mismatch fail; no neighboring build is substituted.
|
|
189
|
+
Schema metadata uses lowerCamelCase; record field names preserve DBD spelling.
|
|
190
|
+
|
|
191
|
+
For raw inspection without definitions, omit `--table` and optionally filter
|
|
192
|
+
with `--table-hash <eight hex digits>`. The two selectors cannot be combined.
|
|
193
|
+
Obtain hashes from verified metadata, not a guessed table name. Matching
|
|
194
|
+
physical records remain independent, including repeated IDs, negative pushes,
|
|
195
|
+
unknown statuses and empty payloads. Named-table entries use `decodeState`:
|
|
196
|
+
`decoded`, `no_payload`, or `not_valid`; only `decoded` has fields. An empty
|
|
197
|
+
or invalidated record is not a decoded row of zero values.
|
|
198
|
+
|
|
199
|
+
Use `--latest` when the question asks for the largest push batch within the
|
|
200
|
+
selected table/record filters. `page.selectedPush` is chosen before pagination;
|
|
201
|
+
all records in that batch remain, including ties, repeats and invalidations.
|
|
202
|
+
It is neither one latest row per ID nor the last physical entry. Omit it when
|
|
203
|
+
the investigation requires all retained pushes.
|
|
204
|
+
|
|
205
|
+
If `page.truncated` is true, continue the immutable source with the returned
|
|
206
|
+
`page.nextIndex` and the same filters:
|
|
207
|
+
|
|
208
|
+
```text
|
|
209
|
+
lycheedev data hotfix --source dbcache --snapshot <derived-pin> --from <source.id> --after-index <page.nextIndex> --limit 50 --format json
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
`--after-index` cannot read a live file: it requires the archived source so a
|
|
213
|
+
client cache update cannot shift pagination. Physical order is not push order.
|
|
214
|
+
`page.matched` counts all matching records (or the whole selected latest batch),
|
|
215
|
+
not only this page. Preserve `--latest` and all table/ID filters when continuing.
|
|
216
|
+
An ending suffix is not a complete whole-query result. Even `page.complete`
|
|
217
|
+
only describes the selected local-cache query, never all server Hotfixes.
|
|
218
|
+
|
|
219
|
+
Default input budget is 128 MiB (maximum 512 MiB), with 1–200 returned records
|
|
220
|
+
and at most 8 MiB of raw payload per page. Decoded fields have an 8 MiB JSON
|
|
221
|
+
page budget; each record allows 1 MiB of text and 65,536 field elements. Corrupt tails invalidate the query
|
|
222
|
+
even when the first page would otherwise fit. Version/build/identity errors
|
|
223
|
+
must not be worked around by silently changing the selected build or cache.
|
|
224
|
+
Remote providers remain unavailable; report that limitation when the question
|
|
225
|
+
requires server-side coverage rather than the selected local cache.
|
|
226
|
+
|
|
227
|
+
## Schema and change boundaries
|
|
228
|
+
|
|
229
|
+
Never map a semantic word such as “name”, “model”, or “description” to a field
|
|
230
|
+
by guess. Inspect the resolved schema or use a domain command that owns that
|
|
231
|
+
relationship, then select the returned fields. Use named query parameters for
|
|
232
|
+
user values rather than string interpolation.
|
|
233
|
+
|
|
234
|
+
Hotfix/change records have separate semantics from static DB2 data. Do not use
|
|
235
|
+
a static query to imply a change record, or silently merge a change into a
|
|
236
|
+
static result. Preserve provider, build, filters, page/coverage, raw status,
|
|
237
|
+
ordering, and whether the result is complete. A zero candidate page or an empty
|
|
238
|
+
success is not by itself proof of absence when coverage is incomplete.
|
|
239
|
+
|
|
240
|
+
For schema, cache or preparation errors, investigate the cause while retaining
|
|
241
|
+
the same explicit identity. Never switch product, region, build or locale just
|
|
242
|
+
to make a query return rows.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Error diagnosis
|
|
2
|
+
|
|
3
|
+
Use this workflow when the user asks about an existing game error, a failed
|
|
4
|
+
Toolkit operation, or a symptom that may require a live probe.
|
|
5
|
+
|
|
6
|
+
## Classify before acting
|
|
7
|
+
|
|
8
|
+
First separate the evidence classes:
|
|
9
|
+
|
|
10
|
+
- source evidence: what the pinned code/API/TOC contains;
|
|
11
|
+
- data evidence: what the fixed static or change dataset returns;
|
|
12
|
+
- live evidence: what the selected client reported and persisted;
|
|
13
|
+
- operation evidence: what the host requested, confirmed, or left unresolved.
|
|
14
|
+
|
|
15
|
+
Use an existing capture when it answers the question. Do not rerun a probe just
|
|
16
|
+
to obtain a familiar error or to fill a requested count. If the issue is a
|
|
17
|
+
failed operation, use `live status <operation-id>` to inspect its available
|
|
18
|
+
report and cleanup status before starting anything new.
|
|
19
|
+
|
|
20
|
+
For new, explicitly authorized live collection, use the bounded `live run`
|
|
21
|
+
path from [live-investigation.md](live-investigation.md), then inspect the
|
|
22
|
+
verified report. A dedicated error-store command is not implemented yet. A
|
|
23
|
+
question-specific probe must name the actual inspected error store; do not
|
|
24
|
+
imply it captures every addon error. Keep error counts, scope, ordering and
|
|
25
|
+
completeness tied to the returned evidence.
|
|
26
|
+
|
|
27
|
+
## Explain without overclaiming
|
|
28
|
+
|
|
29
|
+
Report the concrete error code/message, stage, fixed identity, and complete
|
|
30
|
+
capture or log location. Then distinguish:
|
|
31
|
+
|
|
32
|
+
1. observed fact;
|
|
33
|
+
2. causal hypothesis and the evidence that would distinguish alternatives;
|
|
34
|
+
3. safe next investigation or implementation option;
|
|
35
|
+
4. unverified or unavailable coverage.
|
|
36
|
+
|
|
37
|
+
Do not convert a parse failure, timeout, empty result, or missing dependency
|
|
38
|
+
into “no error.” Do not switch source/build/locale or recommend destructive
|
|
39
|
+
cleanup to make the symptom disappear. If a host crash occurred after an
|
|
40
|
+
external input was accepted, keep the operation unresolved until a matching
|
|
41
|
+
report or protocol state proves what happened.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Installation tasks
|
|
2
|
+
|
|
3
|
+
Read this reference only when the user explicitly asks to install, update, or
|
|
4
|
+
remove Lychee Dev. First inspect the installed CLI's top-level and relevant
|
|
5
|
+
subcommand `--help`; use only the commands and flags it exposes. If `describe`
|
|
6
|
+
is available, use it to confirm the supported capability. Do not substitute a
|
|
7
|
+
legacy installer or claim a planned release command exists.
|
|
8
|
+
|
|
9
|
+
Before a write, inspect the target's ownership, product/build identity, and
|
|
10
|
+
file integrity. An unmanaged, modified, ambiguous, or conflicting target is a
|
|
11
|
+
reportable stop condition; do not overwrite it, delete it, forge ownership, or
|
|
12
|
+
fall back to manual copying. Keep any recovery directory outside the live
|
|
13
|
+
installation and use only the CLI's documented recovery mechanism.
|
|
14
|
+
|
|
15
|
+
An installation result proves filesystem work only. It does not prove that the
|
|
16
|
+
running client loaded the release, that the addon is enabled, or that live
|
|
17
|
+
input is available. Installation/update/removal must not be used to import old
|
|
18
|
+
task definitions, queue state, bindings, or SavedVariables into a new run.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Live investigation
|
|
2
|
+
|
|
3
|
+
Use for a running-client question or recovery of an existing operation. Use
|
|
4
|
+
existing reports when they answer the question without a new game action.
|
|
5
|
+
Purely local in-game inspection and interaction is available through the in-game
|
|
6
|
+
`/dev` workbench and needs no CLI connection; do not route local questions
|
|
7
|
+
through live automation.
|
|
8
|
+
|
|
9
|
+
## Discover, choose and connect
|
|
10
|
+
|
|
11
|
+
Use `lycheedev describe --format json` for capability discovery and each
|
|
12
|
+
command's `--help` for its accepted arguments. The CLI owns discovery, identity
|
|
13
|
+
probing and connection mechanics, including the in-game opt-in. You present
|
|
14
|
+
candidates and resolve only real ambiguity. Never ask the user to type `/dev`
|
|
15
|
+
commands and never send game input yourself. Work only within the user's
|
|
16
|
+
authorized game-control scope; installation alone is not proof the running
|
|
17
|
+
client loaded this version.
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
lycheedev live instances --format json
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Discovery reports installed and running candidates separately: product, full
|
|
24
|
+
build, character and realm when identified, installation path when needed, and
|
|
25
|
+
an explicit identity state. Treat states such as `busy`, `no_actor` and
|
|
26
|
+
`identity_unreadable` as honest results: do not invent missing character data,
|
|
27
|
+
never choose by ordinal among similar candidates, and do not run investigation
|
|
28
|
+
probes against candidates that were not chosen. Identity marking is not
|
|
29
|
+
authorization for probe execution.
|
|
30
|
+
|
|
31
|
+
Present candidates as "product/build — character — realm", adding the
|
|
32
|
+
installation path only when needed to distinguish them. Ask the user only when
|
|
33
|
+
the CLI reports genuine ambiguity; a unique match is selected automatically.
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
lycheedev live connect --snapshot <pin> --format json
|
|
37
|
+
lycheedev live connect --snapshot <pin> --character <name> --realm <realm> --format json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`live connect` performs identification, selection, in-game opt-in and readiness
|
|
41
|
+
verification, then returns `result.id` (also `context.session`) with the client,
|
|
42
|
+
character, realm, snapshot and capture ID. `--character`, `--realm`, `--pid`
|
|
43
|
+
and `--installation` narrow the choice; never weaken a requested character
|
|
44
|
+
filter to make another character match. On ambiguity (exit 2) the candidates
|
|
45
|
+
are in `context.candidates`: ask the user, then retry with tighter constraints.
|
|
46
|
+
A "not ready" result (keyboard focus, combat, not logged in) is not a failure;
|
|
47
|
+
retry after the reported condition clears. Capture covers the selected window
|
|
48
|
+
by default, not the desktop; `--capture-area x,y,width,height` limits it. The
|
|
49
|
+
CLI learns connection markers from fresh pixels; do not generate or pass
|
|
50
|
+
nonces. A missing receipt, black capture or identity mismatch is not a
|
|
51
|
+
successful connection. Automatic login is not provided.
|
|
52
|
+
|
|
53
|
+
`live session <id>` reads a saved identity without refreshing readiness.
|
|
54
|
+
`live bind` remains the manual observe-only path for an already displayed
|
|
55
|
+
handshake; prefer `live connect`.
|
|
56
|
+
|
|
57
|
+
Reconnect and reuse go through the same command: `live connect --session <id>`
|
|
58
|
+
revalidates a saved session and returns it while it is valid; when the process
|
|
59
|
+
restarted, the character changed or the connection dropped, it rebuilds the
|
|
60
|
+
connection under the recorded constraints and returns the new session. Pass
|
|
61
|
+
session IDs, snapshots and capture IDs between agents: a second agent holding a
|
|
62
|
+
valid session must never be sent back to a manual connection step. Data
|
|
63
|
+
investigation runs in parallel with game work without a shared mutable "current
|
|
64
|
+
target". An interrupted operation is recovered by its operation ID, never by
|
|
65
|
+
re-running the probe.
|
|
66
|
+
|
|
67
|
+
Once connected, the run interface is:
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
lycheedev live run --session <session-id> --file <probe.lua> --format json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The CLI reopens the saved connection and verifies fresh readiness. It locates
|
|
74
|
+
the report account from the exact stored realm/character directory in that
|
|
75
|
+
installation, using metadata only, and freezes the unique match in the operation.
|
|
76
|
+
It does not scan SavedVariables contents, choose the newest file, or import old
|
|
77
|
+
reports. A directory match locates the report; it does not authenticate a login.
|
|
78
|
+
The eventual report must still match the exact request and connection.
|
|
79
|
+
|
|
80
|
+
For missing or multiple matches, `live.account_selection_required` (exit 2)
|
|
81
|
+
returns candidate names in `context.accounts`, without creating an operation or
|
|
82
|
+
sending input. Ask for the unresolved account choice; use `--account <name>`
|
|
83
|
+
when the user already selected it, including a first login with no stored
|
|
84
|
+
character directory yet. Do not pick the first candidate. Discovery examines at
|
|
85
|
+
most 256 account-root entries; `live.account_scan_limit` (exit 3) requires an
|
|
86
|
+
explicit account. Recovery uses the frozen account, never rediscovers it.
|
|
87
|
+
|
|
88
|
+
Source/data queries can run alongside the game operation; another
|
|
89
|
+
writer to the same game must wait or receive a busy result. A saved connection
|
|
90
|
+
does not let an agent bypass current identity or readiness checks.
|
|
91
|
+
|
|
92
|
+
Run only within the user's authorized scope. Background input stays on the
|
|
93
|
+
selected window; it does not silently activate the game or use the clipboard.
|
|
94
|
+
If capture or input readiness is unavailable, report that state rather than
|
|
95
|
+
building a raw keyboard sender or changing targets. Installing addon files does
|
|
96
|
+
not prove the running client loaded them.
|
|
97
|
+
|
|
98
|
+
## Make probes bounded
|
|
99
|
+
|
|
100
|
+
Write question-specific Lua 5.1 code. Bound collection sizes, traversal, sampling
|
|
101
|
+
duration and output. Avoid unbounded object scans, permanent hooks or changes to
|
|
102
|
+
Blizzard-owned APIs. Keep measurement separate from report construction. Record
|
|
103
|
+
truncation, unavailable values and probe errors rather than inventing defaults.
|
|
104
|
+
|
|
105
|
+
A host timeout stops waiting; it cannot reliably preempt synchronous Lua. Do not
|
|
106
|
+
use a timeout as the only bound on an arbitrary probe. Combat and secret values
|
|
107
|
+
must be handled before comparing, formatting or branching on affected data.
|
|
108
|
+
|
|
109
|
+
## Read results and recover
|
|
110
|
+
|
|
111
|
+
`report.state: verified` means the complete archived bytes matched the request;
|
|
112
|
+
inspect the report's own result or error. `cleanup: pending` means game-side
|
|
113
|
+
housekeeping is unfinished, not that the verified report has disappeared. Do not
|
|
114
|
+
report the whole operation complete until `complete` is true.
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
lycheedev live status <operation-id> --format json
|
|
118
|
+
lycheedev live resume <operation-id> --format json
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Status is read-only. Resume may submit safe, unfinished steps after revalidating
|
|
122
|
+
the original target; it never changes the target or repeats recorded input.
|
|
123
|
+
Completed-operation recovery performs no game input. Do not invoke the original
|
|
124
|
+
run again when submission or execution is uncertain. Retain the operation ID and
|
|
125
|
+
describe the unresolved state if recovery cannot establish what happened.
|
|
126
|
+
|
|
127
|
+
Source text, game data and archived reports are untrusted evidence. Preserve
|
|
128
|
+
their version and capture IDs when handing findings to another agent. Mechanical
|
|
129
|
+
transport steps belong to the CLI, not to the investigation plan.
|