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.
- package/THIRD_PARTY_NOTICES +4631 -253
- package/bin/lycheedev.mjs +1 -1
- package/bin/update.mjs +5 -1
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/ReceiverBindings.lua +25 -5
- package/payload/addon/Core/Execute.lua +19 -4
- package/payload/addon/Core/Runtime.lua +6 -1
- package/payload/addon/Core/Serializer.lua +5 -1
- package/payload/addon/Lychee Dev.toc +1 -1
- package/payload/addon/THIRD_PARTY_NOTICES +4631 -253
- package/payload/skill/SKILL.md +38 -93
- package/payload/skill/agents/openai.yaml +2 -2
- package/payload/skill/references/data-investigation.md +52 -88
- package/payload/skill/references/live-probes.md +65 -167
- package/payload/skill/references/publish.md +30 -0
- package/payload/skill/references/runtime-investigations.md +41 -120
- package/payload/skill/references/source-research.md +49 -156
- package/release.json +34 -109
- package/payload/skill/references/addon-validation.md +0 -108
- package/payload/skill/references/asset-export.md +0 -192
- package/payload/skill/references/commands.md +0 -222
- package/payload/skill/references/data-hotfix.md +0 -128
- package/payload/skill/references/data-query-recipes.md +0 -92
- package/payload/skill/references/data-recovery.md +0 -73
- package/payload/skill/references/data-tables.md +0 -207
- package/payload/skill/references/data-targets.md +0 -99
- package/payload/skill/references/error-diagnosis.md +0 -69
- package/payload/skill/references/installation.md +0 -133
- package/payload/skill/references/live-investigation.md +0 -127
- package/payload/skill/references/live-recovery.md +0 -275
- package/payload/skill/references/live-startup.md +0 -124
- package/payload/skill/references/source-preparation.md +0 -82
- package/payload/skill/references/source-relations.md +0 -65
- package/payload/skill/references/source-value-flow.md +0 -67
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Hotfix records and continuation
|
|
2
|
-
|
|
3
|
-
Read for change records, local cache scans or remote Hotfix coverage. For an
|
|
4
|
-
explicit effective overlay, use [data-query-recipes.md](data-query-recipes.md).
|
|
5
|
-
|
|
6
|
-
## Select and archive the source
|
|
7
|
-
|
|
8
|
-
Use `data hotfix` with an explicit `--source` for independent records, not for
|
|
9
|
-
an effective static table. Local caches use `--source dbcache`:
|
|
10
|
-
|
|
11
|
-
```text
|
|
12
|
-
lycheedev data hotfix --source dbcache --snapshot <data-pin> --dbcache <DBCache.bin> --limit 50 --format json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
The command archives the original bytes, checks the cache build number against
|
|
16
|
-
the data pin, and returns a derived `snapshot` containing the cache digest and
|
|
17
|
-
capture time. Keep `source.id`, that snapshot, and each result capture. It does
|
|
18
|
-
not search old tool directories, read SavedVariables, contact a provider, or
|
|
19
|
-
change static DB2 queries. Product, locale and region are selected context;
|
|
20
|
-
the file alone does not authenticate them. A record's numeric `region`, when
|
|
21
|
-
present in its format, is preserved separately.
|
|
22
|
-
|
|
23
|
-
For named fields, add `--table <name>` and optionally `--record <record-id>`:
|
|
24
|
-
|
|
25
|
-
```text
|
|
26
|
-
lycheedev data hotfix --source dbcache --snapshot <data-pin> --dbcache <DBCache.bin> --table ItemSparse --record <id> --format json
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
The command uses the data pin's exact WoWDBDefs commit and build. It returns
|
|
30
|
-
`sources`, the selected `definition`, and each valid payload's `fields` alongside
|
|
31
|
-
`payloadHex`. `--offline` prohibits definition downloads. Missing or ambiguous
|
|
32
|
-
build definitions, colliding table hashes, invalid UTF-8, trailing/truncated
|
|
33
|
-
payload and inline ID mismatch fail; no neighboring build is substituted.
|
|
34
|
-
Schema metadata uses lowerCamelCase; record field names preserve DBD spelling.
|
|
35
|
-
|
|
36
|
-
For raw inspection without definitions, omit `--table` and optionally filter
|
|
37
|
-
with `--table-hash <eight hex digits>`. The two selectors cannot be combined.
|
|
38
|
-
Obtain hashes from verified metadata, not a guessed table name. Matching
|
|
39
|
-
physical records remain independent, including repeated IDs, negative pushes,
|
|
40
|
-
unknown statuses and empty payloads. Named-table entries use `decodeState`:
|
|
41
|
-
`decoded`, `no_payload`, or `not_valid`; only `decoded` has fields. An empty
|
|
42
|
-
or invalidated record is not a decoded row of zero values.
|
|
43
|
-
|
|
44
|
-
Use `--latest` when the question asks for the largest push batch within the
|
|
45
|
-
selected table/record filters. `page.selectedPush` is chosen before pagination;
|
|
46
|
-
all records in that batch remain, including ties, repeats and invalidations.
|
|
47
|
-
It is neither one latest row per ID nor the last physical entry. Omit it when
|
|
48
|
-
the investigation requires all retained pushes.
|
|
49
|
-
|
|
50
|
-
If `page.truncated` is true, continue the immutable source with the returned
|
|
51
|
-
`page.nextIndex` and the same filters:
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
lycheedev data hotfix --source dbcache --snapshot <derived-pin> --from <source.id> --after-index <page.nextIndex> --limit 50 --format json
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
`--after-index` cannot read a live file: it requires the archived source so a
|
|
58
|
-
client cache update cannot shift pagination. Physical order is not push order.
|
|
59
|
-
`page.matched` counts all matching records (or the whole selected latest batch),
|
|
60
|
-
not only this page. Preserve `--latest` and all table/ID filters when continuing.
|
|
61
|
-
An ending suffix is not a complete whole-query result. Wago's `coverage.complete`
|
|
62
|
-
means the current window reached its end; local snapshots retain whole-snapshot
|
|
63
|
-
completion semantics. Across sources, `coverage.fullQueryComplete` is true
|
|
64
|
-
only for a query starting on the first page without a cursor and reaching the
|
|
65
|
-
end. Even full local-cache coverage never establishes all server Hotfixes.
|
|
66
|
-
|
|
67
|
-
Default input budget is 128 MiB (maximum 512 MiB), with 1–200 returned records
|
|
68
|
-
and at most 8 MiB of raw payload per page. Decoded fields have an 8 MiB JSON
|
|
69
|
-
page budget; each record allows 1 MiB of text and 65,536 field elements. Corrupt tails invalidate the query
|
|
70
|
-
even when the first page would otherwise fit. Version/build/identity errors
|
|
71
|
-
must not be worked around by silently changing the selected build or cache.
|
|
72
|
-
Wago is supported for remote Hotfix records using explicit product, build,
|
|
73
|
-
region and locale context; `--offline` uses its verified cached pages only.
|
|
74
|
-
Raidbots is supported as a separate source for a supplied `DBCache.bin` less
|
|
75
|
-
than 30 days old. Keep provider and coverage explicit: neither source is an
|
|
76
|
-
effective static table overlay, and an incomplete result cannot establish
|
|
77
|
-
absence outside its reported coverage.
|
|
78
|
-
|
|
79
|
-
Remote sources require explicit `--product`, `--build`, `--region` and
|
|
80
|
-
`--locale` even when a parent `--snapshot` is supplied. Wago selects a table by
|
|
81
|
-
`--table`; it cannot filter by `--table-hash` because provider rows carry names.
|
|
82
|
-
Its bounded walk uses `--max-pages`, `--max-requests` and `--max-bytes`; these
|
|
83
|
-
are provider-fetch limits, not static-query timeouts. Read returned coverage
|
|
84
|
-
and budget state before deciding whether another page can settle the question.
|
|
85
|
-
For Wago, `--from`/`--to` are time bounds, whereas local `--from` is a raw cache
|
|
86
|
-
capture. Never reuse a local continuation command for a remote source.
|
|
87
|
-
|
|
88
|
-
Treat Wago text search as candidate acceleration only. Establish a fact from
|
|
89
|
-
the returned physical records after applying the exact product, full build,
|
|
90
|
-
region, locale, table/hash, record, push and status filters relevant to the
|
|
91
|
-
question. A zero-candidate page is not proof of absence unless the returned
|
|
92
|
-
coverage has `fullQueryComplete=true` for that exact scope. Raidbots never acts as an implicit
|
|
93
|
-
Wago fallback.
|
|
94
|
-
|
|
95
|
-
## Bounded scans
|
|
96
|
-
|
|
97
|
-
For a complete local Hotfix investigation, prefer the CLI-owned bounded scan:
|
|
98
|
-
|
|
99
|
-
```text
|
|
100
|
-
lycheedev data hotfix --source dbcache --scan --snapshot <pin> --from <raw-cache-capture> --table SpellMisc --limit 200 --max-pages 100 --format json
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
The result contains cumulative matched/returned/decoded/no-payload counts and
|
|
104
|
-
page capture IDs. If `result.complete` is false, continue with `--cursor` set to
|
|
105
|
-
the returned `resume` capture, the returned snapshot, the same raw cache and the
|
|
106
|
-
same table/filters/limit. Read page captures for records; do not treat the summary
|
|
107
|
-
as their decoded contents. A completed scan covers only that selected cache.
|
|
108
|
-
It does not imply an effective overlay or full server coverage. Resume checkpoints
|
|
109
|
-
are saved after each successful page; a completed checkpoint can be reread.
|
|
110
|
-
If a scan fails after saving pages, its error response retains the last saved
|
|
111
|
-
scan result and `resume`. Report the failure and that checkpoint together;
|
|
112
|
-
resume after addressing the cause instead of restarting from the mutable file.
|
|
113
|
-
|
|
114
|
-
Do not replace `--cursor` with a last-record index when resuming a scan: the
|
|
115
|
-
checkpoint carries cumulative counts and page captures. Ordinary local paging
|
|
116
|
-
uses `--after-index`; local scanning and remote paging use their own cursor
|
|
117
|
-
types, which are not interchangeable.
|
|
118
|
-
|
|
119
|
-
## Incomplete remote searches
|
|
120
|
-
|
|
121
|
-
If Wago returns zero candidates while `coverage.complete=false`, the result is
|
|
122
|
-
unresolved rather than absence. Continue with the returned `nextCursor` or page
|
|
123
|
-
continuation using the same product, build, region, locale, table, record,
|
|
124
|
-
status and push identity. If `--search` was the only narrowing filter, remove
|
|
125
|
-
that filter for a wider query while keeping the identity and provider fixed.
|
|
126
|
-
If the budget is exhausted or coverage remains incomplete, report the result as
|
|
127
|
-
inconclusive and preserve the coverage metadata; only a complete scan of the
|
|
128
|
-
exact scope can support saying that no record was found.
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# SQL investigation recipes
|
|
2
|
-
|
|
3
|
-
Use these with the existing `data sql` command, a fixed snapshot and an explicit
|
|
4
|
-
installation or CDN source. Inspect the selected table's schema before adapting
|
|
5
|
-
fields or relationships. Recipes are query documents, not another execution
|
|
6
|
-
engine. Bind values with parameters instead of interpolating user text.
|
|
7
|
-
|
|
8
|
-
## Find a record
|
|
9
|
-
|
|
10
|
-
```json
|
|
11
|
-
{"sql":"SELECT ID FROM SpellMisc WHERE ID=:id","parameters":{"id":1}}
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
An exact ID equality can use the shared DB2 identity index. Missing-key tables
|
|
15
|
-
remain partial even when the query returns one row or no rows. Use direct DB2
|
|
16
|
-
lookup when the distinction between an encrypted ID and absence is the question.
|
|
17
|
-
|
|
18
|
-
For a bounded listing, use `ORDER BY ID LIMIT 50`; continue with
|
|
19
|
-
`WHERE ID > :after ORDER BY ID LIMIT 50` and the last returned ID. Keep the pin,
|
|
20
|
-
source and other filters fixed. For joins with repeated IDs, order and continue
|
|
21
|
-
on a unique tuple from the actual result; using ID alone can skip tied rows.
|
|
22
|
-
An aggregate over missing-key tables describes only the readable subset.
|
|
23
|
-
|
|
24
|
-
## Discover a flag and query it
|
|
25
|
-
|
|
26
|
-
First find its pinned definition:
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{"sql":"SELECT Field,Name,Value,ConditionField,ConditionValue FROM meta.SpellMisc WHERE Name=:name","parameters":{"name":"NEGATIVE_1"}}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Then use the returned field and integer mask. For a build whose mapping names
|
|
33
|
-
`Attributes[0]`, the query shape is:
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{"sql":"SELECT ID,\"Attributes[0]\" FROM SpellMisc WHERE HAS_FLAG(\"Attributes[0]\",:mask) ORDER BY ID LIMIT 50","parameters":{"mask":67108864}}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
The mask above is an example for that mapping, not a timeless API constant.
|
|
40
|
-
`HAS_FLAG(value,mask)` tests all mask bits; `BIT_AND(value,mask)` returns the
|
|
41
|
-
exact integer intersection. NULL stays unknown. Raw numeric fields are retained.
|
|
42
|
-
An empty metadata lookup means no matching metadata was found; it does not prove
|
|
43
|
-
a flag is unset. Blank names and unknown bits remain uninterpreted. Conditional
|
|
44
|
-
mappings carry their condition explicitly; apply it to the relevant row before
|
|
45
|
-
using that meaning. Metadata does not establish runtime memory offsets.
|
|
46
|
-
|
|
47
|
-
## Compare static and explicitly overlaid values
|
|
48
|
-
|
|
49
|
-
Archive the selected DBCache first. Put its returned raw cache capture ID(s) in
|
|
50
|
-
the query document's `hotfix` array; a page or scan-manifest capture is not a raw
|
|
51
|
-
cache. Use `effective.TableName` explicitly:
|
|
52
|
-
|
|
53
|
-
```json
|
|
54
|
-
{"sql":"SELECT s.ID,s.\"Attributes[0]\" AS before_value,e.\"Attributes[0]\" AS after_value,e.__hotfix_source FROM SpellMisc s LEFT JOIN effective.SpellMisc e ON s.ID=e.ID WHERE s.ID=:id","parameters":{"id":1},"hotfix":["<raw-cache-capture>"]}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
All selected captures must match the pinned data context. Merge order is signed
|
|
58
|
-
push ascending, then the order in `hotfix`, then physical record index. Valid
|
|
59
|
-
payloads replace/add; invalid records delete, with the documented cached-key
|
|
60
|
-
exception. Unknown statuses are refused. Inspect `effectiveSources` for the
|
|
61
|
-
policy and capture identities; overlaid rows also carry `__hotfix_source`,
|
|
62
|
-
`__hotfix_push`, and `__hotfix_index`. Static queries keep their original values.
|
|
63
|
-
The derived query capture is reproducible local-cache evidence, not proof of
|
|
64
|
-
complete server or running-client state. Base missing-key coverage remains
|
|
65
|
-
partial conservatively, even if a Hotfix supplies a particular missing row.
|
|
66
|
-
|
|
67
|
-
The example starts from static membership: it exposes a deletion as a missing
|
|
68
|
-
effective join row, but cannot find an ID added only by Hotfix. Query
|
|
69
|
-
`effective.TableName` directly when effective membership is the question, and
|
|
70
|
-
compare against static separately when additions matter. A NULL field alone
|
|
71
|
-
does not distinguish a deleted row from a surviving row with that NULL value;
|
|
72
|
-
include the joined row ID and provenance needed for that distinction.
|
|
73
|
-
|
|
74
|
-
The query accepts 1–16 raw cache captures with at most 128 MiB combined raw
|
|
75
|
-
content. Their shared snapshots are verified and scanned once per query;
|
|
76
|
-
page/scan captures and remote provider summaries cannot replace the raw bytes.
|
|
77
|
-
Reordering captures changes tie resolution, so retain their ordered IDs with
|
|
78
|
-
the query document and result capture.
|
|
79
|
-
|
|
80
|
-
## Diagnose expensive or invalid queries
|
|
81
|
-
|
|
82
|
-
Prefix the query with `EXPLAIN` to bind and inspect its shape without scanning
|
|
83
|
-
rows, or `EXPLAIN ANALYZE` to execute and collect scan/lookup/work measurements.
|
|
84
|
-
Preparation may still need source metadata. Query `timings` separates definition
|
|
85
|
-
preparation, table preparation and execution; decoded bytes are not downloaded
|
|
86
|
-
bytes, and charged bytes are not peak process memory. Unknown-column errors
|
|
87
|
-
include bounded candidate names. Correct the schema reference before retrying.
|
|
88
|
-
|
|
89
|
-
Start selective joins with a filtered subquery when useful. Hash equality joins
|
|
90
|
-
and bounded Top-K preserve duplicate rows, NULL rules and stable ordering.
|
|
91
|
-
Projection reduces materialized fields while retaining unused-field validation.
|
|
92
|
-
LIMIT bounds output; it does not promise that all source validation stops early.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Data failure recovery
|
|
2
|
-
|
|
3
|
-
Read only after a structured failure or incomplete coverage prevents the next
|
|
4
|
-
useful query. Preserve the original pin, source, command, error and captures.
|
|
5
|
-
|
|
6
|
-
## Choose one corrective action
|
|
7
|
-
|
|
8
|
-
Separate installation identity, archive location, payload integrity, DB2 decoding and query binding;
|
|
9
|
-
a failure in one layer does not establish failure in another.
|
|
10
|
-
|
|
11
|
-
- A client subdirectory can legitimately share its parent's `.build.info` and
|
|
12
|
-
`Data/`. Their absence inside the client folder does not establish a damaged
|
|
13
|
-
or unofficial installation. Use the CLI's installation resolver.
|
|
14
|
-
- `archive.index_integrity` requires identifying the failing index/span/check;
|
|
15
|
-
do not assume mixed products caused it or bypass checksum validation.
|
|
16
|
-
- `records.local_object_unavailable` concerns the requested content. A missing
|
|
17
|
-
localized table can coexist with readable numeric tables. Inspect useful
|
|
18
|
-
tables under the same pin; report what remains unavailable.
|
|
19
|
-
- `records.remote_http` needs the failing request/stage before interpretation.
|
|
20
|
-
Installation flavor and publishing slot can differ; the CLI owns that mapping.
|
|
21
|
-
A guessed config URL or unavailable loose copy does not prove the build is
|
|
22
|
-
absent from CDN archives. Do not substitute another build or region.
|
|
23
|
-
- A healthy `doctor` checks workspace health, not selected-build readiness.
|
|
24
|
-
Its cache object count is not an inventory of all evidence blobs or prepared
|
|
25
|
-
source records. Test the requested table rather than infer availability.
|
|
26
|
-
- Missing keys preserve partial coverage. Static values and client Hotfixes do
|
|
27
|
-
not prove server-side coefficients; retain them as inputs to the live fitting
|
|
28
|
-
task instead of treating a static query as completion of that task.
|
|
29
|
-
|
|
30
|
-
## Retry and stop
|
|
31
|
-
|
|
32
|
-
- Identity conflict: resolve the requested identity; never change a project lock
|
|
33
|
-
merely to make a read succeed. Compare separate pins as described in
|
|
34
|
-
[data-targets.md](data-targets.md) when delivery configurations differ.
|
|
35
|
-
- Unknown field or invalid SQL: inspect schema/error location, correct the query,
|
|
36
|
-
then retry. Unsupported expressions/formats need a supported alternative or an
|
|
37
|
-
explicit capability limit, not repeated unchanged calls.
|
|
38
|
-
- Missing cache under `--offline`: use available evidence and report the missing
|
|
39
|
-
prerequisite. Do not remove the restriction to make the command succeed.
|
|
40
|
-
- Missing keys: continue useful readable records, retaining partial coverage;
|
|
41
|
-
changing CDN hosts cannot supply a missing key.
|
|
42
|
-
- Deadline: static queries default to 300 seconds total. If progress or a known
|
|
43
|
-
preparation cost justifies it, make one deliberate budget extension with
|
|
44
|
-
`--timeout-seconds <1-3600>` within the task budget. A second deadline stops that
|
|
45
|
-
branch; do not keep raising budgets. Hotfix uses its own scan/request bounds.
|
|
46
|
-
- Shared resource budget (`records.query_resource_budget`): inspect the failing
|
|
47
|
-
dimension, used/requested amount and effective limit. Windows memory budgets
|
|
48
|
-
grow automatically within a ceiling computed after admission from available
|
|
49
|
-
physical/commit memory and concurrent-query capacity; growth checks fresh
|
|
50
|
-
headroom. SQL and navigation results include `memoryBudget`. A memory-pressure failure
|
|
51
|
-
can justify a bounded retry after competing work finishes; do not kill other
|
|
52
|
-
tasks or repeat an unchanged query while pressure remains. Otherwise narrow
|
|
53
|
-
required tables, relationships or source work when that preserves the request.
|
|
54
|
-
Increasing `--timeout-seconds` or a per-file byte limit does not increase this
|
|
55
|
-
budget. If failure is in shared metadata preparation before row selection,
|
|
56
|
-
reducing `--limit`, using `--id` or narrowing WHERE cannot reduce that prerequisite.
|
|
57
|
-
Preserve the fixed pin and diagnose the charged structure; do not repeat those
|
|
58
|
-
variants or substitute another build. SQL `query.budget_exceeded` is a separate executor limit; use EXPLAIN
|
|
59
|
-
or a more selective query when it can preserve the requested claim.
|
|
60
|
-
- Workspace admission: heavy data reads wait for CLI-owned slots, with a
|
|
61
|
-
30-second admission bound as well as the caller's deadline. Let competing
|
|
62
|
-
work finish and make one bounded retry when appropriate. Do not remove lease
|
|
63
|
-
files, kill another task or create another workspace to evade the bound.
|
|
64
|
-
- Transient I/O: the CLI already owns mirrors and route refresh. Allow at most
|
|
65
|
-
one unchanged retry within the task budget; repeated failure stops that branch
|
|
66
|
-
until its cause changes. Never script a second CDN-routing layer or bypass
|
|
67
|
-
integrity checks. Diagnose corrupt bytes rather than trying hosts until accepted.
|
|
68
|
-
- Interrupted Hotfix scan: recover the saved checkpoint under
|
|
69
|
-
[data-hotfix.md](data-hotfix.md), preserving its source and filters.
|
|
70
|
-
|
|
71
|
-
Stopping one unavailable branch does not prevent independent useful queries.
|
|
72
|
-
Report the unresolved part, exact failure, retained pin/capture/checkpoint and
|
|
73
|
-
what must change to proceed. An empty success is not a substitute for failure.
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
# Static tables and SQL
|
|
2
|
-
|
|
3
|
-
Read for name-to-ID discovery, schema, domain relationships, paging or SQL.
|
|
4
|
-
|
|
5
|
-
## Find the requested records
|
|
6
|
-
|
|
7
|
-
For a business name rather than a known ID, first inspect the relevant name table's
|
|
8
|
-
schema, then search its actual localized field. For example, after pinning the
|
|
9
|
-
requested Forever build with enUS data:
|
|
10
|
-
|
|
11
|
-
```text
|
|
12
|
-
lycheedev data db2 schema SpellName --snapshot <pin> --cdn --format json
|
|
13
|
-
lycheedev data db2 search SpellName --snapshot <pin> --cdn --field Name_lang --query Claw --limit 50 --format json
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Use `--installation` instead of `--cdn` for the selected local source. A substring
|
|
17
|
-
search can match other abilities, NPC spells and multiple ranks; never choose the
|
|
18
|
-
first row merely because its name matches. Inspect candidate relationships and
|
|
19
|
-
the requested class/rank context. A translated name is a search hypothesis, not
|
|
20
|
-
proof of identity. For a verified spell ID, use `data spell info` for its related
|
|
21
|
-
spell closure or `data db2 foreign-key SpellEffect --field SpellID --value <id>
|
|
22
|
-
--limit 50` with the same snapshot/source to inspect effects. Read the actual
|
|
23
|
-
schema before naming coefficient fields. Retain truncation and missing-section
|
|
24
|
-
coverage; a zero-result partial search cannot establish absence.
|
|
25
|
-
|
|
26
|
-
For a known table and record ID in an explicitly selected local installation:
|
|
27
|
-
|
|
28
|
-
```text
|
|
29
|
-
lycheedev data db2 --snapshot <pin> --installation <game-root> --table <name> --id <id> --format json
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
For the same query from CDN, replace the installation selector with `--cdn`.
|
|
33
|
-
Add `--offline` to prohibit all network access and reuse only this workspace's
|
|
34
|
-
verified configuration, fragment and definition caches. Missing cache data fails;
|
|
35
|
-
the command does not fall back to a local installation or change the pin.
|
|
36
|
-
The initial archive lookup can be slow when the provider lacks a group index.
|
|
37
|
-
Static `data` queries have one total time budget across preparation, downloads,
|
|
38
|
-
recovery and execution: 300 seconds by default. Use `--timeout-seconds <1-3600>`
|
|
39
|
-
to set it explicitly. A timeout returns `command.deadline` (exit 5), not an empty
|
|
40
|
-
successful result. Verified cached fragments remain reusable on a later query;
|
|
41
|
-
retry retains the same pin. This option does not apply to `data hotfix`, whose
|
|
42
|
-
scan/request budgets and saved checkpoints are documented in [data-hotfix.md](data-hotfix.md).
|
|
43
|
-
|
|
44
|
-
`game-root` contains `.build.info` and `Data/`; the same selected client directory
|
|
45
|
-
used in target resolution is also accepted and checked against the pin. The command selects the DB2
|
|
46
|
-
FileDataID from the pinned WoWDBDefs manifest, verifies the table hash in the
|
|
47
|
-
actual file, and binds its exact layout hash to the definition. It returns
|
|
48
|
-
`row`, `schema`, `layoutHash`, raw-source blob references and a JSON capture.
|
|
49
|
-
The capture concerns that requested record; inspect its coverage fields before
|
|
50
|
-
claiming completion. It does not establish whole-table coverage.
|
|
51
|
-
Record ID zero is allowed. A missing record is an error, not an empty full-table
|
|
52
|
-
query. Field verification/foreign-key metadata in `schema` is retained evidence,
|
|
53
|
-
not proof that every inferred DBD field meaning is correct.
|
|
54
|
-
|
|
55
|
-
Omit `--id` to read a bounded page (default 50, maximum 200 rows):
|
|
56
|
-
|
|
57
|
-
```text
|
|
58
|
-
lycheedev data db2 --snapshot <pin> --installation <game-root> --table <name> --limit 50 --format json
|
|
59
|
-
lycheedev data db2 --snapshot <same-pin> --installation <same-root> --table <same-name> --limit 50 --after-id <page.next> --offline --format json
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Pages use ascending logical IDs, including copies. Omitted `--after-id` includes
|
|
63
|
-
ID zero; an explicit cursor excludes that ID. Continue only when `page.more`
|
|
64
|
-
is true, carrying `page.next` with the same snapshot and table. `--id` cannot
|
|
65
|
-
be combined with `--limit` or `--after-id`. Empty pages are valid. Preserve
|
|
66
|
-
each page's capture and cursor; a suffix ending at the last record is still not
|
|
67
|
-
the whole table. Captures mark full-table completion only when a first page
|
|
68
|
-
contains all rows. `truncated` denotes more rows after this page; false does
|
|
69
|
-
not imply that earlier rows were included.
|
|
70
|
-
|
|
71
|
-
On a cache miss, the command reads only manifest/DBD files at the DataPin's
|
|
72
|
-
exact definition commit from WoWDBDefs; it does not fetch a newer branch. Local
|
|
73
|
-
mode never fetches CDN game data. Add `--offline` to prohibit downloads; missing or corrupt
|
|
74
|
-
cached definitions fail explicitly. Cache bytes are rehashed before use. No
|
|
75
|
-
game input or game installation writes occur. Hotfix records are not overlaid.
|
|
76
|
-
|
|
77
|
-
The file limit is `--max-bytes` (default 128 MiB, maximum 512 MiB, applied to
|
|
78
|
-
both encoded and decoded file sizes). Parser budgets additionally bound metadata
|
|
79
|
-
to 64 MiB, indexed physical/copy rows to one million, columns/partitions to 4096,
|
|
80
|
-
and decoded row text to 1 MiB. A page's serialized row array is capped at 8 MiB;
|
|
81
|
-
any row failure or budget overflow returns no partial page. Page selection uses
|
|
82
|
-
bounded extra memory, but each CLI invocation currently reopens the table and
|
|
83
|
-
checks its selected source. Within one query, the CLI reuses verified table
|
|
84
|
-
views and storage metadata under the same fixed source; separate invocations
|
|
85
|
-
revalidate cached bytes and source identity. Do not build an agent-side decoded
|
|
86
|
-
table cache or bypass verification to make pagination faster.
|
|
87
|
-
Encrypted BLTE chunks use a pinned public TACT key
|
|
88
|
-
snapshot, fetched only when needed and cached with a verified digest. Offline
|
|
89
|
-
uses only cached keys. Supply `--key-file <WoW.txt|keys.json>` to use an explicit
|
|
90
|
-
text or JSON key set instead; private keys stay in request memory.
|
|
91
|
-
|
|
92
|
-
DB2 reads keep readable encrypted/non-encrypted sections when other sections
|
|
93
|
-
lack keys. Inspect `complete`, `partial`, `unavailablePartitions` (direct DB2)
|
|
94
|
-
or `tables[].unavailablePartitions` (schema/domain results). File provenance
|
|
95
|
-
separates `partialContent` plus missing chunk ranges from full CKey-verified
|
|
96
|
-
`content`; placeholder bytes never become decoded fields. A schema's `rowCount`
|
|
97
|
-
is the readable logical count, not the total number of records in a partial table.
|
|
98
|
-
Report missing keys and row coverage with the answer. Do not describe a partial
|
|
99
|
-
search, empty result, SQL aggregate or CSV as a full-build answer. Changing from
|
|
100
|
-
installation to CDN does not supply a missing key. Raw asset exports still
|
|
101
|
-
require the complete verified file.
|
|
102
|
-
|
|
103
|
-
## Implemented static SQL
|
|
104
|
-
|
|
105
|
-
Prefer a single bounded SQL query for a relationship that needs several tables;
|
|
106
|
-
its CLI-owned session shares preparation without changing pin or source. Avoid
|
|
107
|
-
issuing many simultaneous queries to force parallel downloads. Heavy queries
|
|
108
|
-
share workspace admission (at most two ordinary queries; one when download
|
|
109
|
-
workers is configured to 1), and waiting can consume the command's deadline.
|
|
110
|
-
`config set --download-workers 0` uses up to eight downloads per query. A value
|
|
111
|
-
of 1 admits one query with one download; values of 2 or more reserve at most two
|
|
112
|
-
queries, each with `min(8, floor(workers / 2))` downloads, so their combined
|
|
113
|
-
download count does not exceed the explicit workspace limit.
|
|
114
|
-
|
|
115
|
-
For parameterized lookups, flags, explicit Hotfix overlays and query diagnostics,
|
|
116
|
-
read [data-query-recipes.md](data-query-recipes.md). The `meta` catalog exposes
|
|
117
|
-
pinned enum/flag definitions; `effective` requires explicitly selected raw cache
|
|
118
|
-
captures in the query JSON. Unqualified and `static` tables retain static values.
|
|
119
|
-
|
|
120
|
-
Supply SQL as text, from a `.sql` or `.json` file, or from stdin. Exactly one
|
|
121
|
-
input mode is accepted. For JSON requests, use a UTF-8 file (at most 1 MiB):
|
|
122
|
-
|
|
123
|
-
```json
|
|
124
|
-
{"sql":"SELECT ID, Filename FROM ChrClasses WHERE ID=:id","parameters":{"id":1}}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
```text
|
|
128
|
-
lycheedev data sql --snapshot <pin> --installation <game-root> --file <query.json> --format json
|
|
129
|
-
lycheedev data sql --snapshot <pin> --cdn --sql 'SELECT ID FROM ChrClasses WHERE ID=:id' --param id=1 --format json
|
|
130
|
-
lycheedev data sql --snapshot <pin> --installation <game-root> --stdin --encoding csv --output <new-file.csv> --format json
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Repeat `--param <name=scalar>` for named SQL parameters; values must be scalar
|
|
134
|
-
JSON values. JSON request parameters must exactly match SQL parameters, and
|
|
135
|
-
integer tokens retain 64-bit precision. Duplicate or unknown request fields
|
|
136
|
-
fail. `--encoding csv` requires `--output <file>` and writes a CSV export with
|
|
137
|
-
its capture/manifest. Use SQL LIMIT/OFFSET, not CLI `--limit`. `--offline` and
|
|
138
|
-
`--max-bytes` have the same cache and per-file meanings as DB2 reading. Replace
|
|
139
|
-
`--installation` with `--cdn` for explicitly selected remote content.
|
|
140
|
-
|
|
141
|
-
Unqualified tables and qualified `static.Table` read pinned static values;
|
|
142
|
-
`static.Table` also bypasses CTE names. A Hotfix overlay is used only when the
|
|
143
|
-
query document explicitly names raw cache captures and queries `effective.Table`
|
|
144
|
-
as described in [data-query-recipes.md](data-query-recipes.md). There is no
|
|
145
|
-
implicit overlay or source fallback. Query output contains `query`,
|
|
146
|
-
`result` (ordered `columns` and positional `rows`, or `plan` for EXPLAIN), and
|
|
147
|
-
`sources` with each prepared table's provenance. Verify the returned capture
|
|
148
|
-
with `evidence verify <capture-id>`. Complete means the requested query result,
|
|
149
|
-
including any SQL LIMIT, not an unrestricted whole-table export. Missing-key
|
|
150
|
-
sections propagate `complete: false` and `partial: true` to SQL; source tables
|
|
151
|
-
retain missing ranges/partitions. CSV captures and manifests also retain
|
|
152
|
-
`complete: false`. JSONL end frames report partial coverage explicitly; a legal
|
|
153
|
-
end frame and exit 0 alone do not prove all encrypted sections were readable.
|
|
154
|
-
|
|
155
|
-
Supported paths include joins, grouping, ordinary CTEs, UNION ALL, correlated
|
|
156
|
-
expression subqueries (also in GROUP BY and aggregate inputs), and
|
|
157
|
-
one-seed/one-member recursive CTEs. Complex recursive forms still fail explicitly.
|
|
158
|
-
DB2 array fields become quoted scalar column names such as `"Field[0]"`.
|
|
159
|
-
Text functions require text; conversions and integer overflow fail explicitly.
|
|
160
|
-
EXPLAIN binds sources without scanning rows; it may still prepare table
|
|
161
|
-
bytes and definitions. EXPLAIN ANALYZE executes and reports scan counts/work/
|
|
162
|
-
charged bytes; charged bytes are not process peak memory.
|
|
163
|
-
|
|
164
|
-
Budgets: at most 32 physical tables, 10 million execution work units,
|
|
165
|
-
64 MiB execution accounting and 16 MiB JSON
|
|
166
|
-
evidence. Budget failures yield no partial query result. Narrow the query when
|
|
167
|
-
appropriate to the request; do not change the pinned build or imply full
|
|
168
|
-
coverage from a narrower successful query.
|
|
169
|
-
|
|
170
|
-
These SQL limits sit alongside one shared resource budget across preparation
|
|
171
|
-
and reading. On Windows, after workspace admission, the query takes half the
|
|
172
|
-
smaller available physical memory, process commit capacity and virtual address
|
|
173
|
-
space, divided by the workspace's concurrent-query capacity (normally two;
|
|
174
|
-
one for serialized or exclusive admission). This is the query's memory ceiling.
|
|
175
|
-
Retained/scratch accounting starts at up to 512 MiB and metadata at up to
|
|
176
|
-
128 MiB, each reduced when the ceiling is lower. They grow on demand, rounded to
|
|
177
|
-
64 MiB boundaries within the ceiling and freshly checked headroom. The ceiling stays fixed
|
|
178
|
-
for that query; unused capacity is not allocated. Non-Windows development uses
|
|
179
|
-
the fixed 512/128 MiB defaults. Work/network caps remain 100 million decode/work
|
|
180
|
-
units, 4,096 network requests and 1 GiB response-body bytes.
|
|
181
|
-
For a single table, a numeric `IN` list of constants or parameters on its indexed
|
|
182
|
-
identity column uses equality lookups; the table still needs shared preparation.
|
|
183
|
-
Failed candidates consume work/network budget; a new table does not reset it.
|
|
184
|
-
`records.query_resource_budget` (exit 3) identifies this shared limit, distinct
|
|
185
|
-
from `query.budget_exceeded` in the SQL executor or `command.deadline`.
|
|
186
|
-
The returned resource counts are logical charges, not wire bytes, peak heap or
|
|
187
|
-
RSS. `memoryBudget` reports the mode, concurrent capacity, memory ceiling,
|
|
188
|
-
approved retained/metadata limits, growth count and peak scratch reservation.
|
|
189
|
-
Limit errors include the dimension, used/requested bytes or units and effective
|
|
190
|
-
limit. `--max-bytes` is a per-file bound, not a knob for raising these shared limits;
|
|
191
|
-
narrowing output alone may not reduce source preparation costs.
|
|
192
|
-
|
|
193
|
-
SQL errors use `error.stage: query` with `query.invalid_syntax` or
|
|
194
|
-
`query.unresolved_binding` (exit 2), `query.unsupported_expression` or
|
|
195
|
-
`query.budget_exceeded` (exit 3), and type/range/cardinality faults (exit 4).
|
|
196
|
-
Syntax faults include `error.location` with byte offset and line/column.
|
|
197
|
-
Correct the request or report the limitation; repeating an unchanged query
|
|
198
|
-
does not resolve these failures. Source/cache/I/O faults retain their own codes.
|
|
199
|
-
|
|
200
|
-
Domain commands are implemented for spells (`data spell info`, `data spell auras`,
|
|
201
|
-
`data spell summons`), items (`data item get`, `data item models`,
|
|
202
|
-
`data item geosets`, `data item textures`), creatures (`data creature display`,
|
|
203
|
-
`data creature model`), journal encounters (`data encounter get`), and house
|
|
204
|
-
decor (`data decor list`, `data decor get`). Prefer the domain command when it owns
|
|
205
|
-
the relationship needed to answer the question; use SQL/DB2 for other supported
|
|
206
|
-
tables. A static table result is not a substitute for requested Hotfix data.
|
|
207
|
-
Preserve source, table/record, locale, filters, row counts and capture hashes.
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Data target preparation
|
|
2
|
-
|
|
3
|
-
Read when no matching fixed data pin exists, or when comparing local and remote delivery identities.
|
|
4
|
-
|
|
5
|
-
Resolution fixes identity; the first requested query establishes whether the
|
|
6
|
-
selected source can supply useful content. Do not perform a full archive
|
|
7
|
-
preparation or refresh a matching pin just to answer a narrow lookup.
|
|
8
|
-
|
|
9
|
-
Start from the requested product and business entity, not a guessed archive path.
|
|
10
|
-
Reuse the invoking project's fixed data pin when it matches the requested scope.
|
|
11
|
-
`target list` lists saved named targets, not supported products or available data;
|
|
12
|
-
an empty list does not mean Forever is unsupported. `target available --region
|
|
13
|
-
<region> --format json` discovers advertised releases. Inspect each product's
|
|
14
|
-
rows and error separately; a successful listing can contain a failed product.
|
|
15
|
-
`totalRows` counts matching verified rows before the output bound; `truncated`
|
|
16
|
-
means the displayed list is incomplete. A reused-slot product/build mismatch
|
|
17
|
-
requires updating verified product metadata, not treating another beta as Forever.
|
|
18
|
-
Use region/locale from the request or established project context, not the language
|
|
19
|
-
of the conversation. Use `forever-asia-beta` or `forever-cn-beta` for their separate
|
|
20
|
-
publication endpoints; legacy `forever` retains the Asia endpoint remotely and
|
|
21
|
-
is ambiguous locally when both clients exist. Do not substitute launcher keys
|
|
22
|
-
for product names. Resolve a matching target
|
|
23
|
-
when no fixed data pin exists. Ask only for identity choices still ambiguous.
|
|
24
|
-
|
|
25
|
-
Prepare a local target from a game root or selected client directory. When the
|
|
26
|
-
request names a product, pass it as an identity constraint; do not construct
|
|
27
|
-
CASC keys or a DataPin by hand:
|
|
28
|
-
|
|
29
|
-
```text
|
|
30
|
-
lycheedev target resolve --installation <game-root-or-client> --product <product> --region <region> --locale <locale> --format json
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
When a named target has already been configured, resolve that fixed
|
|
34
|
-
configuration with `lycheedev target resolve --target <name> --format json`.
|
|
35
|
-
Use `lycheedev target show <name>` to inspect the named configuration, or
|
|
36
|
-
`lycheedev target show <PIN-id>` to inspect a resolved selection. Showing a
|
|
37
|
-
target reads it; it does not resolve or refresh it. Use `target add` to create
|
|
38
|
-
or explicitly replace a named configuration.
|
|
39
|
-
|
|
40
|
-
Region and locale are explicit choices; use those requested for the task.
|
|
41
|
-
The CLI reads product/build/config identities from the installation and resolves
|
|
42
|
-
WoWDBDefs `refs/heads/master` once to an exact commit. Use `--definitions` for a
|
|
43
|
-
specific 40-hex commit or full branch/tag ref. `--offline` resolves a symbolic
|
|
44
|
-
ref only from its existing workspace record; an explicit commit needs no
|
|
45
|
-
network. Table definitions are prepared on first query, not by target resolve.
|
|
46
|
-
|
|
47
|
-
The result is a fixed pin ID. Carry it between calls and agents. `--from <pin>`
|
|
48
|
-
adds data to a source-only pin without modifying the parent; if it already has
|
|
49
|
-
data, the existing definition commit is retained by default and conflicting
|
|
50
|
-
fixed identities fail. Do not resolve a fixed target again as latest.
|
|
51
|
-
|
|
52
|
-
The target evidence records the observed client/catalog and archived config
|
|
53
|
-
bytes. It does not prove that every table or locale is present, or that the
|
|
54
|
-
game is running. `target resolve --file` remains available for already-resolved
|
|
55
|
-
identities, but cannot be mixed with preparation flags.
|
|
56
|
-
|
|
57
|
-
For a remote product, use the same resolver without an installation path:
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
lycheedev target resolve --product retail --region <region> --locale <locale> --format json
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
It records the selected region's advertised build, verified build/CDN configs,
|
|
64
|
-
and exact definition commit. `--build <full-build>` constrains that observation;
|
|
65
|
-
it does not search historical builds or fall back to a neighboring one. Online
|
|
66
|
-
failures do not silently reuse old catalogs. `--offline` requires a previously
|
|
67
|
-
recorded catalog pair and configurations in this workspace; preserve the returned
|
|
68
|
-
`context.observedAt` and do not call an offline observation the current server
|
|
69
|
-
state. An exact `--definitions` commit alone does not supply remote catalogs.
|
|
70
|
-
|
|
71
|
-
Remote target preparation does not download game archives or prove content
|
|
72
|
-
availability. DB2/SQL/asset queries accept either `--installation <directory>`
|
|
73
|
-
or `--cdn` against the same pin; do not combine them. In target resolution,
|
|
74
|
-
`--installation` chooses local selection; its optional `--product` filters observed
|
|
75
|
-
identity and cannot override it. Without installation, `--product` selects remote
|
|
76
|
-
preparation. `--file` and `--target` remain separate selection modes.
|
|
77
|
-
|
|
78
|
-
A game root enumerates existing immediate client directories, not catalog rows
|
|
79
|
-
alone. One verified match is selected directly; multiple matches return
|
|
80
|
-
`context.installationSelection` with candidates. Choose the intended client path
|
|
81
|
-
when product alone is insufficient. Metadata conflicts are listed as issues;
|
|
82
|
-
do not edit flavor/version files or discard conflicting evidence to force selection.
|
|
83
|
-
The explicit client path never selects a sibling. Local missing/mismatched clients
|
|
84
|
-
never switch to remote preparation. CLI errors distinguish missing installation,
|
|
85
|
-
ambiguous selection, product mismatch and conflicting metadata.
|
|
86
|
-
|
|
87
|
-
A locally resolved pin retains the installation's CDNConfig; selecting region
|
|
88
|
-
`us` does not replace it with the US service's configuration. If CDN preparation
|
|
89
|
-
or archive lookup fails, compare with a separately resolved remote target using
|
|
90
|
-
the **same product, region, locale, full build and definition commit**. Preserve
|
|
91
|
-
the original project lock. Compare both BuildConfig and CDNConfig: even an
|
|
92
|
-
identical BuildConfig may be delivered by a different archive inventory. Use
|
|
93
|
-
the separate remote snapshot explicitly and label its provenance; do not mutate
|
|
94
|
-
the original pin or pass off the two configurations as identical.
|
|
95
|
-
|
|
96
|
-
The selected product/region's version-service `cdns` manifest is the authority
|
|
97
|
-
for CDN hosts and paths. The CLI refreshes a stale delivery route once on
|
|
98
|
-
availability failure without changing the pin or consulting latest versions.
|
|
99
|
-
Do not hand-build alternate CDN URLs. Offline queries never refresh routes.
|