lycheedev 3.2.1 → 3.2.3
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/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/InputState.lua +3 -0
- package/payload/addon/Bridge/SlotRuntime.lua +13 -2
- package/payload/addon/Core/Compat.lua +24 -0
- package/payload/addon/Core/Runtime.lua +1 -1
- package/payload/addon/Lychee Dev.toc +1 -1
- package/payload/skill/references/data-recovery.md +7 -1
- package/payload/skill/references/data-tables.md +19 -6
- package/payload/skill/references/live-startup.md +10 -0
- package/release.json +22 -22
|
Binary file
|
package/package.json
CHANGED
|
@@ -34,6 +34,9 @@ local function sample()
|
|
|
34
34
|
identity.inputBlocked=ready~=true
|
|
35
35
|
identity.reason=reason or ""
|
|
36
36
|
identity.escapeLimit=0
|
|
37
|
+
if ns.SlotRuntime and ns.SlotRuntime.SlotReloadRequired then
|
|
38
|
+
identity.slotReloadRequired=ns.SlotRuntime.SlotReloadRequired() or nil
|
|
39
|
+
end
|
|
37
40
|
-- Always obtain a detached private snapshot; public mailbox values never
|
|
38
41
|
-- drive the attempt sequence or any input/receipt authorization.
|
|
39
42
|
if ns.SlotRuntime and ns.SlotRuntime.InputDiagnostic then identity.inputAttempt=ns.SlotRuntime.InputDiagnostic() end
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
local _, ns = ...
|
|
2
2
|
|
|
3
3
|
local engine,receiving,inputLease,expectedSlot,skipLoaded,mailbox,runtimeToken
|
|
4
|
+
local slotReloadRequired,slotEnableSavePending=false,false
|
|
4
5
|
local LIMIT=ns.SlotProtocol.Count
|
|
5
6
|
local zero=string.rep("0",32)
|
|
6
7
|
-- Latest private callback outcome only. This is diagnostic data, never a
|
|
@@ -72,13 +73,22 @@ local function start()
|
|
|
72
73
|
state.memoryEpoch=epoch+1
|
|
73
74
|
local runtime=string.format("%08x%08x%04x%04x%04x%04x",epoch+1,math.floor(clock),math.random(0,65535),math.random(0,65535),math.random(0,65535),math.random(0,65535))
|
|
74
75
|
runtimeToken=runtime
|
|
75
|
-
local available=0
|
|
76
|
+
local available,enableFailure=0,nil
|
|
76
77
|
for i=1,LIMIT do
|
|
77
78
|
local name=string.format("Lychee Dev Slot %02d",i)
|
|
78
79
|
if ns.Compat.GetAddOnMetadata(name,"X-Lychee-Slot")==tostring(i)
|
|
79
80
|
and ns.Compat.GetAddOnMetadata(name,"Version")==ns.Release
|
|
80
|
-
and ns.Compat.GetAddOnMetadata(name,"X-Lychee-Transport")=="Lycheedev mailbox protocol v1" then
|
|
81
|
+
and ns.Compat.GetAddOnMetadata(name,"X-Lychee-Transport")=="Lycheedev mailbox protocol v1" then
|
|
82
|
+
available=available+1
|
|
83
|
+
local changed,failure=ns.Compat.EnsureInputSlotEnabled(name,actor.guid)
|
|
84
|
+
if changed then slotEnableSavePending=true elseif changed==nil then enableFailure=enableFailure or failure end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
if slotEnableSavePending then
|
|
88
|
+
local saved,failure=ns.Compat.SaveInputSlots()
|
|
89
|
+
if saved then slotReloadRequired,slotEnableSavePending=true,false else enableFailure=failure end
|
|
81
90
|
end
|
|
91
|
+
if enableFailure then return nil,enableFailure end
|
|
82
92
|
ns.AutomationHistory.Begin(runtime,{character=actor.character,realm=actor.realm,guid=actor.guid,build=build.build,product=build.product})
|
|
83
93
|
engine=ns.SlotProtocol.Create({runtime=runtime,build=build.build,product=build.product,release=ns.Release,inventory=available,
|
|
84
94
|
inputState=ns.InputState and "Lycheedev mailbox protocol v1" or nil,
|
|
@@ -163,6 +173,7 @@ ns.SlotRuntime={
|
|
|
163
173
|
Start=start,Wake=guardedWake,Close=close,
|
|
164
174
|
IsActive=function()return ns.InputProtection.IsActive()end,
|
|
165
175
|
InputDiagnostic=attemptSnapshot,
|
|
176
|
+
SlotReloadRequired=function()return slotReloadRequired end,
|
|
166
177
|
Receive=function(index,envelope)
|
|
167
178
|
if not engine or index~=expectedSlot then return nil,"slot_not_requested" end
|
|
168
179
|
attemptReceived=true
|
|
@@ -45,6 +45,30 @@ ns.Compat = {
|
|
|
45
45
|
if loaded~=true and reason=="DISABLED" then return nil,"slot_addon_disabled" end
|
|
46
46
|
return loaded==true and true or nil,type(reason)=="string" and reason or "slot_load_failed"
|
|
47
47
|
end,
|
|
48
|
+
-- Caller has verified this managed slot's metadata and current actor.
|
|
49
|
+
-- These APIs change enable settings only; no slot is loaded or consumed.
|
|
50
|
+
EnsureInputSlotEnabled = function(name,character)
|
|
51
|
+
if type(C_AddOns)~="table" or type(C_AddOns.GetAddOnEnableState)~="function" then return nil,"slot_enable_state_unavailable" end
|
|
52
|
+
local function state()
|
|
53
|
+
local ok,value=pcall(C_AddOns.GetAddOnEnableState,name,character)
|
|
54
|
+
if not ok or (issecretvalue and issecretvalue(value)) or type(value)~="number"
|
|
55
|
+
or (value~=0 and value~=1 and value~=2) then return nil end
|
|
56
|
+
return value
|
|
57
|
+
end
|
|
58
|
+
local before=state()
|
|
59
|
+
if before==nil then return nil,"slot_enable_state_failed" end
|
|
60
|
+
if before~=0 then return false end
|
|
61
|
+
if type(C_AddOns.EnableAddOn)~="function" or type(C_AddOns.SaveAddOns)~="function" then return nil,"slot_enable_unavailable" end
|
|
62
|
+
if not pcall(C_AddOns.EnableAddOn,name,character) then return nil,"slot_enable_failed" end
|
|
63
|
+
local after=state()
|
|
64
|
+
if after==nil or after==0 then return nil,"slot_enable_failed" end
|
|
65
|
+
return true
|
|
66
|
+
end,
|
|
67
|
+
SaveInputSlots = function()
|
|
68
|
+
if type(C_AddOns)~="table" or type(C_AddOns.SaveAddOns)~="function" then return nil,"slot_enable_save_unavailable" end
|
|
69
|
+
if not pcall(C_AddOns.SaveAddOns) then return nil,"slot_enable_save_failed" end
|
|
70
|
+
return true
|
|
71
|
+
end,
|
|
48
72
|
ReceiverChord = function(key)
|
|
49
73
|
if (issecretvalue and issecretvalue(key)) or type(key)~="string" then return nil end
|
|
50
74
|
local number=string.match(key,"^F([1-9]%d?)$")
|
|
@@ -44,7 +44,13 @@ a failure in one layer does not establish failure in another.
|
|
|
44
44
|
`--timeout-seconds <1-3600>` within the task budget. A second deadline stops that
|
|
45
45
|
branch; do not keep raising budgets. Hotfix uses its own scan/request bounds.
|
|
46
46
|
- Shared resource budget (`records.query_resource_budget`): inspect the failing
|
|
47
|
-
dimension
|
|
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.
|
|
48
54
|
Increasing `--timeout-seconds` or a per-file byte limit does not increase this
|
|
49
55
|
budget. If failure is in shared metadata preparation before row selection,
|
|
50
56
|
reducing `--limit`, using `--id` or narrowing WHERE cannot reduce that prerequisite.
|
|
@@ -161,20 +161,33 @@ EXPLAIN binds sources without scanning rows; it may still prepare table
|
|
|
161
161
|
bytes and definitions. EXPLAIN ANALYZE executes and reports scan counts/work/
|
|
162
162
|
charged bytes; charged bytes are not process peak memory.
|
|
163
163
|
|
|
164
|
-
Budgets: at most 32 physical tables,
|
|
165
|
-
|
|
164
|
+
Budgets: at most 32 physical tables, 10 million execution work units,
|
|
165
|
+
64 MiB execution accounting and 16 MiB JSON
|
|
166
166
|
evidence. Budget failures yield no partial query result. Narrow the query when
|
|
167
167
|
appropriate to the request; do not change the pinned build or imply full
|
|
168
168
|
coverage from a narrower successful query.
|
|
169
169
|
|
|
170
|
-
These SQL limits sit alongside shared
|
|
171
|
-
and reading
|
|
172
|
-
|
|
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.
|
|
173
183
|
Failed candidates consume work/network budget; a new table does not reset it.
|
|
174
184
|
`records.query_resource_budget` (exit 3) identifies this shared limit, distinct
|
|
175
185
|
from `query.budget_exceeded` in the SQL executor or `command.deadline`.
|
|
176
186
|
The returned resource counts are logical charges, not wire bytes, peak heap or
|
|
177
|
-
RSS.
|
|
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;
|
|
178
191
|
narrowing output alone may not reduce source preparation costs.
|
|
179
192
|
|
|
180
193
|
SQL errors use `error.stage: query` with `query.invalid_syntax` or
|
|
@@ -49,6 +49,7 @@ need [installation](installation.md) diagnosis, not an overlay copy.
|
|
|
49
49
|
| Result | Continue |
|
|
50
50
|
| --- | --- |
|
|
51
51
|
| Ready runtime, clean installation | Connect and keep the returned CON |
|
|
52
|
+
| INPUT slotReloadRequired=true | Startup enabled managed slots for this character; connect or resume lets the CLI reload within the original CON and deadline before binding |
|
|
52
53
|
| Two formal bindings loaded under the previous protocol name | Let fix/resume send the verified reload key once, then bind the current protocol; do not ask for manual reload merely because the name changed |
|
|
53
54
|
| Existing connection in this project | Resume its original request; pending input is not replaced |
|
|
54
55
|
| Foreign project owns the PID | Continue from the owning project; do not delete its claim |
|
|
@@ -63,6 +64,15 @@ instance’s claim can block the shared-directory update; retain the original ID
|
|
|
63
64
|
Each process sharing the installation must load and verify the new runtime
|
|
64
65
|
independently. One PID’s successful reload never activates another PID.
|
|
65
66
|
|
|
67
|
+
At startup the main addon checks the current character's managed slots, enables
|
|
68
|
+
disabled ones and saves the settings without loading slots. A changed setting
|
|
69
|
+
sets `Mailbox.input.slotReloadRequired` until reload. This is separate from
|
|
70
|
+
physical input readiness: combat, restricted focus and keyboard activity still
|
|
71
|
+
delay the reload. Already enabled slots cause no settings write or reload.
|
|
72
|
+
The CLI retains any existing reload request and pending business evidence;
|
|
73
|
+
the flag never authorizes replay of submitted or unknown input. Read-only doctor
|
|
74
|
+
reports this state as `live.slot_activation`; it does not send the reload itself.
|
|
75
|
+
|
|
66
76
|
## First installation and reload
|
|
67
77
|
|
|
68
78
|
A loaded runtime with fresh two-key INPUT can reload automatically during a
|
package/release.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "lycheedev.release.v1",
|
|
3
|
-
"version": "3.2.
|
|
4
|
-
"commit": "
|
|
3
|
+
"version": "3.2.3",
|
|
4
|
+
"commit": "3766f9cacb52e93a803a626187e2a1d54a445468",
|
|
5
5
|
"binaries": {
|
|
6
6
|
"windows-amd64": {
|
|
7
7
|
"path": "native/windows-amd64/lycheedev.exe",
|
|
8
|
-
"bytes":
|
|
9
|
-
"sha256": "
|
|
8
|
+
"bytes": 24512000,
|
|
9
|
+
"sha256": "4862cd7d79deaecff737d817b1ea7b3fbfa76c231cec4f97137cfe5b7a460f3e"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"resources": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"path": "addon/Bridge/InputState.lua",
|
|
40
|
-
"bytes":
|
|
41
|
-
"sha256": "
|
|
40
|
+
"bytes": 5219,
|
|
41
|
+
"sha256": "b6466861ba7caf3b9958932fc3e92318a504c4d790bd1e519b4b55c2198e43b1"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "addon/Bridge/MemoryProtocol.lua",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"path": "addon/Bridge/SlotRuntime.lua",
|
|
65
|
-
"bytes":
|
|
66
|
-
"sha256": "
|
|
65
|
+
"bytes": 10052,
|
|
66
|
+
"sha256": "c542f8394e9929edbedfcbdd2de5f39c2fa14b89d27b2e16258127092a0ea75c"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"path": "addon/Core/ClientGate.lua",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"path": "addon/Core/Compat.lua",
|
|
75
|
-
"bytes":
|
|
76
|
-
"sha256": "
|
|
75
|
+
"bytes": 6335,
|
|
76
|
+
"sha256": "24ff493bf98b304b21873c7630308c6a3fe46e34dfe8dc1f8de80c4a2fcfb069"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"path": "addon/Core/Controls.lua",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
{
|
|
114
114
|
"path": "addon/Core/Runtime.lua",
|
|
115
115
|
"bytes": 2615,
|
|
116
|
-
"sha256": "
|
|
116
|
+
"sha256": "282cc677046af77325bd20c88fed24bcbb62aafddbe0bf7ff7ce1bb46dc454df"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"path": "addon/Core/Safety.lua",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
{
|
|
144
144
|
"path": "addon/Lychee Dev.toc",
|
|
145
145
|
"bytes": 2005,
|
|
146
|
-
"sha256": "
|
|
146
|
+
"sha256": "0b8f7eef49e6834e543576f6276224c43f4b288cc628e0e7564a40df03e4bedc"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "addon/Media/GitHub.png",
|
|
@@ -337,13 +337,13 @@
|
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
339
|
"path": "skill/references/data-recovery.md",
|
|
340
|
-
"bytes":
|
|
341
|
-
"sha256": "
|
|
340
|
+
"bytes": 4947,
|
|
341
|
+
"sha256": "689786f23454d524cb694c0a48955b00c7860acf44b3b2c456ea854a87593be8"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"path": "skill/references/data-tables.md",
|
|
345
|
-
"bytes":
|
|
346
|
-
"sha256": "
|
|
345
|
+
"bytes": 13099,
|
|
346
|
+
"sha256": "a1e2bc5d0fb5fc3ed9af307d1da98a57ad7127e4022eca0644fa52f7f993e455"
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"path": "skill/references/data-targets.md",
|
|
@@ -377,8 +377,8 @@
|
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"path": "skill/references/live-startup.md",
|
|
380
|
-
"bytes":
|
|
381
|
-
"sha256": "
|
|
380
|
+
"bytes": 6775,
|
|
381
|
+
"sha256": "e710a3d60b8432dd5d83cbf0c5cbc10175266ce542cfd7570ddf5cc508a3a86c"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"path": "skill/references/runtime-investigations.md",
|
|
@@ -6448,9 +6448,9 @@
|
|
|
6448
6448
|
],
|
|
6449
6449
|
"correspondingSource": {
|
|
6450
6450
|
"repository": "https://github.com/Follen/Lychee-Dev",
|
|
6451
|
-
"commit": "
|
|
6452
|
-
"tag": "v3.2.
|
|
6453
|
-
"archive": "lycheedev-3.2.
|
|
6454
|
-
"sha256": "
|
|
6451
|
+
"commit": "3766f9cacb52e93a803a626187e2a1d54a445468",
|
|
6452
|
+
"tag": "v3.2.3",
|
|
6453
|
+
"archive": "lycheedev-3.2.3-corresponding-source.tar.gz",
|
|
6454
|
+
"sha256": "280aa025099b50429977978c37e4af099e0ad5d5886cf8219760e5b9cadc38da"
|
|
6455
6455
|
}
|
|
6456
6456
|
}
|