lycheedev 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -38
- package/THIRD_PARTY_NOTICES +4 -314
- package/bin/lycheedev.mjs +1 -1
- package/bin/update.mjs +26 -32
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bindings.xml +12 -0
- package/payload/addon/Bridge/ActivityView.lua +2 -5
- package/payload/addon/Bridge/CaptureWriter.lua +9 -115
- package/payload/addon/Bridge/FocusBindings.lua +71 -0
- package/payload/addon/Bridge/InputProtection.lua +2 -9
- package/payload/addon/Bridge/InputState.lua +15 -19
- package/payload/addon/Bridge/MemoryProtocol.lua +1 -1
- package/payload/addon/Bridge/ProbeExecution.lua +1 -0
- package/payload/addon/Bridge/ReceiverBindings.lua +73 -279
- package/payload/addon/Bridge/SlotProtocol.lua +30 -12
- package/payload/addon/Bridge/SlotRuntime.lua +9 -12
- package/payload/addon/Core/ClientGate.lua +2 -0
- package/payload/addon/Core/Compat.lua +25 -24
- package/payload/addon/Core/Controls.lua +27 -248
- package/payload/addon/Core/Execute.lua +22 -19
- package/payload/addon/Core/Locale.lua +4 -116
- package/payload/addon/Core/Locale_enUS.lua +4 -116
- package/payload/addon/Core/Persistence.lua +2 -2
- package/payload/addon/Core/Runtime.lua +46 -64
- package/payload/addon/Core/Serializer.lua +9 -1
- package/payload/addon/Core/Startup.lua +20 -0
- package/payload/addon/Core/Stores.lua +63 -95
- package/payload/addon/LICENSE +21 -0
- package/payload/addon/Lychee Dev.toc +10 -21
- package/payload/addon/Modules/AutomationView.lua +47 -383
- package/payload/addon/Modules/Diagnostics.lua +0 -4
- package/payload/addon/Modules/Events/Catalog.lua +1 -1
- package/payload/addon/Modules/Events/CatalogData_Anniversary.lua +1489 -0
- package/payload/addon/Modules/Events/CatalogData_Era.lua +1489 -0
- package/payload/addon/Modules/FunctionTrace.lua +17 -6
- package/payload/addon/Modules/ObjectInspector.lua +27 -25
- package/payload/addon/THIRD_PARTY_NOTICES +483 -0
- package/payload/addon/UI/Pages/Automation.lua +7 -64
- package/payload/addon/UI/Pages/Events.lua +0 -4
- package/payload/addon/UI/Pages/ExportRecords.lua +1 -1
- package/payload/addon/UI/Pages/Object.lua +5 -4
- package/payload/addon/UI/Pages/Run.lua +7 -1
- package/payload/addon/UI/TreeView.lua +0 -11
- package/payload/addon/UI/Widgets.lua +0 -102
- package/payload/addon/UI/Window.lua +0 -6
- package/payload/skill/SKILL.md +11 -2
- package/payload/skill/references/commands.md +17 -27
- package/payload/skill/references/data-hotfix.md +6 -3
- package/payload/skill/references/data-investigation.md +5 -2
- package/payload/skill/references/data-tables.md +4 -0
- package/payload/skill/references/data-targets.md +4 -2
- package/payload/skill/references/installation.md +9 -3
- package/payload/skill/references/live-investigation.md +14 -6
- package/payload/skill/references/live-probes.md +9 -8
- package/payload/skill/references/live-recovery.md +67 -43
- package/payload/skill/references/live-startup.md +97 -76
- package/payload/skill/references/runtime-investigations.md +10 -8
- package/payload/skill/references/source-preparation.md +23 -2
- package/payload/skill/references/source-research.md +58 -5
- package/payload/skill/scripts/lycheedev.mjs +16 -12
- package/release.json +136 -176
- package/payload/addon/Bridge/Definitions.lua +0 -3
- package/payload/addon/Bridge/FaultRunner.lua +0 -44
- package/payload/addon/Bridge/Identity.lua +0 -127
- package/payload/addon/Bridge/InputProtocol.lua +0 -76
- package/payload/addon/Bridge/InputSignal.lua +0 -36
- package/payload/addon/Bridge/Investigation.lua +0 -159
- package/payload/addon/Bridge/MatrixSymbol.lua +0 -1169
- package/payload/addon/Bridge/ProbeQueue.lua +0 -205
- package/payload/addon/Bridge/ProbeRunner.lua +0 -349
- package/payload/addon/Bridge/ReceiptView.lua +0 -316
- package/payload/addon/Bridge/Receiver.lua +0 -326
- package/payload/addon/Bridge/Reentry.lua +0 -261
- package/payload/addon/Bridge/ReportStore.lua +0 -224
- package/payload/addon/Bridge/Session.lua +0 -173
- package/payload/addon/Bridge/StartupBeacon.lua +0 -63
|
@@ -1,76 +1,58 @@
|
|
|
1
1
|
local ADDON_NAME, ns = ...
|
|
2
2
|
|
|
3
|
-
ns.Release = "3.
|
|
3
|
+
ns.Release = "3.2.0"
|
|
4
4
|
ns.Startup = { ready = false, reason = "addon_not_loaded" }
|
|
5
|
-
-- Observability handle: mirrors the addon namespace for host-side /run
|
|
6
|
-
-- introspection (startup state, identity, commandFailure) on every client.
|
|
7
5
|
_G.LycheeDevInternal = ns
|
|
8
6
|
|
|
9
|
-
-- This
|
|
10
|
-
--
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
local
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
local
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
-- This small bootstrap loads before the workbench. It retains diagnostic
|
|
8
|
+
-- publication and manual reload even when a later module cannot start.
|
|
9
|
+
local clock = ns.Compat.MonotonicSeconds() or 0
|
|
10
|
+
local boot = string.format("%08x%04x%04x%04x%04x%08x", math.floor(clock),
|
|
11
|
+
math.random(0,65535), math.random(0,65535), math.random(0,65535), math.random(0,65535), 1)
|
|
12
|
+
local zero = string.rep("0",32)
|
|
13
|
+
local phase, failure, sequence = "loading", "", 0
|
|
14
|
+
local publication = {schema="Lycheedev mailbox protocol v1",release=ns.Release,runtime=boot}
|
|
15
|
+
ns.BootstrapMailbox = publication
|
|
16
|
+
local function publish()
|
|
17
|
+
sequence = sequence + 1
|
|
18
|
+
local bindings, bindingFailure = ns.ReceiverBindings.Current()
|
|
19
|
+
local value = {schema="Lycheedev mailbox protocol v1",bootstrap=boot,release=ns.Release,
|
|
20
|
+
phase=phase,reason=failure,bindings=bindings or {wake="",reload=""},
|
|
21
|
+
bindingFailure=bindingFailure or ""}
|
|
22
|
+
local payload = ns.CaptureWriter.Encode(value,4096)
|
|
23
|
+
if payload then publication.bootstrap=ns.MemoryProtocol.Encode(boot,boot,zero,6,1,sequence,payload) end
|
|
25
24
|
end
|
|
26
|
-
|
|
27
|
-
local function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ns.Startup = { ready = false, reason = reason }
|
|
32
|
-
report(trigger, reason)
|
|
33
|
-
return false
|
|
34
|
-
end
|
|
35
|
-
local loaded, failure = ns.Persistence.Load()
|
|
36
|
-
if not loaded then
|
|
37
|
-
ns.Startup = { ready = false, reason = failure }
|
|
38
|
-
report(trigger, failure)
|
|
39
|
-
return false
|
|
40
|
-
end
|
|
41
|
-
ns.Startup = { ready = true, identity = identity }
|
|
42
|
-
started = true
|
|
43
|
-
local registered, registrationFailure = ns.Controls.Register()
|
|
44
|
-
if not registered then ns.Startup.commandFailure = registrationFailure end
|
|
45
|
-
local receiverRegistered, receiverFailure
|
|
46
|
-
if ns.SlotRuntime then receiverRegistered,receiverFailure=ns.SlotRuntime.Register()
|
|
47
|
-
else receiverRegistered,receiverFailure=ns.Receiver.Register() end
|
|
48
|
-
if not receiverRegistered then ns.Startup.receiverFailure = receiverFailure end
|
|
49
|
-
if ns.StartupBeacon then ns.StartupBeacon.Arm() end
|
|
50
|
-
if registered and not ns.SlotRuntime then
|
|
51
|
-
local resumed, resumeFailure = ns.Reentry.Start(loader)
|
|
52
|
-
if not resumed then ns.Startup.resumeFailure = resumeFailure end
|
|
53
|
-
end
|
|
54
|
-
return true
|
|
25
|
+
ns.Bootstrap = { Publish = publish }
|
|
26
|
+
local function reload()
|
|
27
|
+
local ready, reason = ns.Compat.CanReload()
|
|
28
|
+
if not ready then return nil, reason end
|
|
29
|
+
return ns.Compat.ReloadUI()
|
|
55
30
|
end
|
|
56
|
-
|
|
57
|
-
|
|
31
|
+
local function wake()
|
|
32
|
+
if not ns.Startup.ready or not ns.SlotRuntime then return nil,ns.Startup.reason or "startup_failed" end
|
|
33
|
+
return ns.SlotRuntime.Wake()
|
|
34
|
+
end
|
|
35
|
+
local reported={}
|
|
36
|
+
local loader=CreateFrame("Frame")
|
|
58
37
|
loader:RegisterEvent("ADDON_LOADED")
|
|
59
38
|
loader:RegisterEvent("PLAYER_LOGIN")
|
|
60
|
-
loader:SetScript("OnEvent",
|
|
61
|
-
if event
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if ok or event=="PLAYER_LOGIN" then self:UnregisterAllEvents();self:SetScript("OnEvent",nil) end
|
|
70
|
-
end
|
|
39
|
+
loader:SetScript("OnEvent",function(self,event,name)
|
|
40
|
+
if event=="ADDON_LOADED" and name~=ADDON_NAME then return end
|
|
41
|
+
local bound,bindingFailure=ns.ReceiverBindings.Register({wake=wake,reload=reload})
|
|
42
|
+
ns.Startup.receiverFailure=not bound and bindingFailure or nil
|
|
43
|
+
local ok,started,reason
|
|
44
|
+
if ns.StartRuntime then ok,started,reason=pcall(ns.StartRuntime)
|
|
45
|
+
else ok,started,reason=true,nil,"startup_module_unavailable" end
|
|
46
|
+
if not ok then started,reason=nil,"startup_exception" end
|
|
47
|
+
if started then phase,failure="ready",""
|
|
71
48
|
else
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
49
|
+
phase,failure="failed",reason or "startup_failed"
|
|
50
|
+
ns.Startup.ready,ns.Startup.reason=false,failure
|
|
51
|
+
if not reported[failure] then print("Lychee Dev: "..failure);reported[failure]=true end
|
|
52
|
+
end
|
|
53
|
+
publish()
|
|
54
|
+
if started or event=="PLAYER_LOGIN" then
|
|
55
|
+
self:UnregisterAllEvents();self:SetScript("OnEvent",nil)
|
|
75
56
|
end
|
|
76
57
|
end)
|
|
58
|
+
publish()
|
|
@@ -282,7 +282,15 @@ local function CreateStream(value)
|
|
|
282
282
|
if not succeeded then
|
|
283
283
|
self.finished = true
|
|
284
284
|
self.state.limited = true
|
|
285
|
-
|
|
285
|
+
-- An error may itself have a failing __tostring. Keep this
|
|
286
|
+
-- error outlet passive so callers receive the partial text
|
|
287
|
+
-- and limited state instead of a second escaping error.
|
|
288
|
+
local formatted, message = false, nil
|
|
289
|
+
if not (issecretvalue and issecretvalue(segment)) then
|
|
290
|
+
formatted, message = pcall(tostring, segment)
|
|
291
|
+
end
|
|
292
|
+
self.errorMessage = formatted and type(message) == "string"
|
|
293
|
+
and not (issecretvalue and issecretvalue(message)) and message or "serialization_failed"
|
|
286
294
|
break
|
|
287
295
|
elseif coroutine.status(thread) == "dead" then
|
|
288
296
|
self.finished = true
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
local _, ns = ...
|
|
2
|
+
|
|
3
|
+
-- The bootstrap owns the loader and bindings; business startup owns persistence
|
|
4
|
+
-- and the workbench. A failed initialization never removes bootstrap diagnostics.
|
|
5
|
+
local initialized=false
|
|
6
|
+
ns.StartRuntime=function()
|
|
7
|
+
if not initialized then
|
|
8
|
+
local identity,reason=ns.Platform.ObserveBuild()
|
|
9
|
+
if not identity then return nil,reason end
|
|
10
|
+
local loaded,failure=ns.Persistence.Load()
|
|
11
|
+
if not loaded then return nil,failure end
|
|
12
|
+
ns.Startup.ready,ns.Startup.reason,ns.Startup.identity=true,nil,identity
|
|
13
|
+
local registered,registrationFailure=ns.Controls.Register()
|
|
14
|
+
ns.Startup.commandFailure=not registered and registrationFailure or nil
|
|
15
|
+
initialized=true
|
|
16
|
+
end
|
|
17
|
+
local ok,reason=ns.SlotRuntime.Start()
|
|
18
|
+
if ok then ns.Startup.ready,ns.Startup.reason=true,nil end
|
|
19
|
+
return ok,reason
|
|
20
|
+
end
|
|
@@ -275,19 +275,22 @@ local function InitializeSections(root)
|
|
|
275
275
|
if historyVersion == nil or historyVersion > HISTORY_SCHEMA_VERSION then
|
|
276
276
|
historyWritesBlocked = true
|
|
277
277
|
end
|
|
278
|
-
if type(history.entries) ~= "table" then
|
|
279
|
-
history.entries = {}
|
|
280
|
-
end
|
|
281
278
|
historyBytes = 0
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
279
|
+
if not historyWritesBlocked then
|
|
280
|
+
if type(history.entries) ~= "table" then
|
|
281
|
+
history.entries = {}
|
|
282
|
+
end
|
|
283
|
+
historyBytes = 0
|
|
284
|
+
for index = #history.entries, 1, -1 do
|
|
285
|
+
local entry = NormalizeHistoryEntry(history.entries[index])
|
|
286
|
+
if not entry then
|
|
287
|
+
table.remove(history.entries, index)
|
|
288
|
+
else
|
|
289
|
+
historyBytes = historyBytes + GetHistoryEntryBytes(entry)
|
|
290
|
+
end
|
|
288
291
|
end
|
|
292
|
+
PruneHistoryToBudget(root)
|
|
289
293
|
end
|
|
290
|
-
PruneHistoryToBudget(root)
|
|
291
294
|
|
|
292
295
|
if not Plain(root.exports) then
|
|
293
296
|
root.exports = {}
|
|
@@ -297,40 +300,43 @@ local function InitializeSections(root)
|
|
|
297
300
|
if exportsVersion == nil or exportsVersion > EXPORT_SCHEMA_VERSION then
|
|
298
301
|
exportsWritesBlocked = true
|
|
299
302
|
end
|
|
300
|
-
exports.nextId = math.max(0, math.floor(tonumber(exports.nextId) or 0))
|
|
301
|
-
exports.records = Plain(exports.records) and exports.records or {}
|
|
302
|
-
exports.order = type(exports.order) == "table" and exports.order or {}
|
|
303
|
-
|
|
304
|
-
local validRecords = {}
|
|
305
303
|
exportBytes = 0
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
304
|
+
if not exportsWritesBlocked then
|
|
305
|
+
exports.nextId = math.max(0, math.floor(tonumber(exports.nextId) or 0))
|
|
306
|
+
exports.records = Plain(exports.records) and exports.records or {}
|
|
307
|
+
exports.order = type(exports.order) == "table" and exports.order or {}
|
|
308
|
+
|
|
309
|
+
local validRecords = {}
|
|
310
|
+
exportBytes = 0
|
|
311
|
+
for id, entry in pairs(exports.records) do
|
|
312
|
+
local normalized = type(id) == "string" and NormalizeExportRecord(id, entry) or nil
|
|
313
|
+
if normalized then
|
|
314
|
+
validRecords[id] = normalized
|
|
315
|
+
exportBytes = exportBytes + GetExportEntryBytes(normalized)
|
|
316
|
+
end
|
|
311
317
|
end
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
exports.records = validRecords
|
|
319
|
+
|
|
320
|
+
local ordered = {}
|
|
321
|
+
local included = {}
|
|
322
|
+
for index = 1, #exports.order do
|
|
323
|
+
local id = exports.order[index]
|
|
324
|
+
if validRecords[id] and not included[id] then
|
|
325
|
+
ordered[#ordered + 1] = id
|
|
326
|
+
included[id] = true
|
|
327
|
+
end
|
|
322
328
|
end
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
329
|
+
for id in pairs(validRecords) do
|
|
330
|
+
if not included[id] then
|
|
331
|
+
ordered[#ordered + 1] = id
|
|
332
|
+
end
|
|
327
333
|
end
|
|
334
|
+
table.sort(ordered, function(left, right)
|
|
335
|
+
return validRecords[left].createdAt > validRecords[right].createdAt
|
|
336
|
+
end)
|
|
337
|
+
exports.order = ordered
|
|
338
|
+
PruneExportsToBudget(root)
|
|
328
339
|
end
|
|
329
|
-
table.sort(ordered, function(left, right)
|
|
330
|
-
return validRecords[left].createdAt > validRecords[right].createdAt
|
|
331
|
-
end)
|
|
332
|
-
exports.order = ordered
|
|
333
|
-
PruneExportsToBudget(root)
|
|
334
340
|
end
|
|
335
341
|
|
|
336
342
|
-- Fetches the current database root at use time and (re)initializes the store
|
|
@@ -390,18 +396,18 @@ end
|
|
|
390
396
|
|
|
391
397
|
function History.Get()
|
|
392
398
|
local root = EnsureState()
|
|
393
|
-
return root and root.history.entries or nil
|
|
399
|
+
return root and not historyWritesBlocked and root.history.entries or nil
|
|
394
400
|
end
|
|
395
401
|
|
|
396
402
|
function History.GetStats()
|
|
397
403
|
local root = EnsureState()
|
|
398
|
-
local count = root and #root.history.entries or 0
|
|
404
|
+
local count = root and not historyWritesBlocked and #root.history.entries or 0
|
|
399
405
|
return count, historyBytes, MAX_HISTORY_BYTES
|
|
400
406
|
end
|
|
401
407
|
|
|
402
408
|
function History.Clear()
|
|
403
409
|
local root = EnsureState()
|
|
404
|
-
if not root then
|
|
410
|
+
if not root or historyWritesBlocked then
|
|
405
411
|
return false
|
|
406
412
|
end
|
|
407
413
|
wipe(root.history.entries)
|
|
@@ -409,6 +415,10 @@ function History.Clear()
|
|
|
409
415
|
return true
|
|
410
416
|
end
|
|
411
417
|
|
|
418
|
+
function History.IsWritable()
|
|
419
|
+
return EnsureState() ~= nil and not historyWritesBlocked
|
|
420
|
+
end
|
|
421
|
+
|
|
412
422
|
local Exports = {
|
|
413
423
|
SCHEMA = EXPORT_SCHEMA,
|
|
414
424
|
KINDS = {
|
|
@@ -422,6 +432,10 @@ local Exports = {
|
|
|
422
432
|
},
|
|
423
433
|
}
|
|
424
434
|
|
|
435
|
+
function Exports.IsWritable()
|
|
436
|
+
return EnsureState() ~= nil and not exportsWritesBlocked
|
|
437
|
+
end
|
|
438
|
+
|
|
425
439
|
function Exports.Add(kind, title, content, metadata, options)
|
|
426
440
|
local root, reason = EnsureState()
|
|
427
441
|
if not root then
|
|
@@ -461,17 +475,17 @@ end
|
|
|
461
475
|
|
|
462
476
|
function Exports.Get(id)
|
|
463
477
|
local root = EnsureState()
|
|
464
|
-
return root and root.exports.records[id] or nil
|
|
478
|
+
return root and not exportsWritesBlocked and root.exports.records[id] or nil
|
|
465
479
|
end
|
|
466
480
|
|
|
467
481
|
function Exports.GetOrder()
|
|
468
482
|
local root = EnsureState()
|
|
469
|
-
return root and root.exports.order or nil
|
|
483
|
+
return root and not exportsWritesBlocked and root.exports.order or nil
|
|
470
484
|
end
|
|
471
485
|
|
|
472
486
|
function Exports.GetStats()
|
|
473
487
|
local root = EnsureState()
|
|
474
|
-
local count = root and #root.exports.order or 0
|
|
488
|
+
local count = root and not exportsWritesBlocked and #root.exports.order or 0
|
|
475
489
|
return count, exportBytes, MAX_EXPORT_BYTES
|
|
476
490
|
end
|
|
477
491
|
|
|
@@ -491,23 +505,11 @@ function Exports.GetProtectedCount()
|
|
|
491
505
|
return protectedExportCount
|
|
492
506
|
end
|
|
493
507
|
|
|
494
|
-
function Exports.Protect(id)
|
|
495
|
-
local root = EnsureState()
|
|
496
|
-
if not root or type(id) ~= "string" or not root.exports.records[id] then
|
|
497
|
-
return false
|
|
498
|
-
end
|
|
499
|
-
if not protectedExports[id] then
|
|
500
|
-
protectedExports[id] = true
|
|
501
|
-
protectedExportCount = protectedExportCount + 1
|
|
502
|
-
end
|
|
503
|
-
return true
|
|
504
|
-
end
|
|
505
|
-
|
|
506
508
|
-- Records the flush of one record to disk: it leaves the pending and protected
|
|
507
509
|
-- sets and becomes ordinary saved data.
|
|
508
510
|
function Exports.MarkSaved(id)
|
|
509
511
|
local root = EnsureState()
|
|
510
|
-
if not root or type(id) ~= "string" or not root.exports.records[id] then
|
|
512
|
+
if not root or exportsWritesBlocked or type(id) ~= "string" or not root.exports.records[id] then
|
|
511
513
|
return false
|
|
512
514
|
end
|
|
513
515
|
if pendingExports[id] then
|
|
@@ -525,7 +527,7 @@ end
|
|
|
525
527
|
-- session, "saved" once it is ordinary on-disk data.
|
|
526
528
|
function Exports.GetState(id)
|
|
527
529
|
local root = EnsureState()
|
|
528
|
-
if not root or type(id) ~= "string" or not root.exports.records[id] then
|
|
530
|
+
if not root or exportsWritesBlocked or type(id) ~= "string" or not root.exports.records[id] then
|
|
529
531
|
return "none"
|
|
530
532
|
end
|
|
531
533
|
return pendingExports[id] and "pending" or "saved"
|
|
@@ -533,7 +535,7 @@ end
|
|
|
533
535
|
|
|
534
536
|
function Exports.Delete(id)
|
|
535
537
|
local root = EnsureState()
|
|
536
|
-
if not root or type(id) ~= "string" or not root.exports.records[id] then
|
|
538
|
+
if not root or exportsWritesBlocked or type(id) ~= "string" or not root.exports.records[id] then
|
|
537
539
|
return false
|
|
538
540
|
end
|
|
539
541
|
-- Results awaiting their reload disk write cannot be deleted.
|
|
@@ -554,7 +556,7 @@ end
|
|
|
554
556
|
|
|
555
557
|
function Exports.Clear()
|
|
556
558
|
local root = EnsureState()
|
|
557
|
-
if not root then
|
|
559
|
+
if not root or exportsWritesBlocked then
|
|
558
560
|
return 0
|
|
559
561
|
end
|
|
560
562
|
local removed = 0
|
|
@@ -570,40 +572,6 @@ function Exports.Clear()
|
|
|
570
572
|
return removed
|
|
571
573
|
end
|
|
572
574
|
|
|
573
|
-
-- Precheck that a new record fits after pruning protected records aside;
|
|
574
|
-
-- reserved bytes keep headroom for failure reports.
|
|
575
|
-
function Exports.CanFit(byteCount, reserve)
|
|
576
|
-
local root = EnsureState()
|
|
577
|
-
if not root then
|
|
578
|
-
return false
|
|
579
|
-
end
|
|
580
|
-
byteCount = tonumber(byteCount) or 0
|
|
581
|
-
local budget = MAX_EXPORT_BYTES - math.max(0, tonumber(reserve) or 0)
|
|
582
|
-
if byteCount > budget then
|
|
583
|
-
return false
|
|
584
|
-
end
|
|
585
|
-
local projectedBytes = exportBytes + byteCount
|
|
586
|
-
local projectedCount = #root.exports.order + 1
|
|
587
|
-
if projectedBytes <= budget and projectedCount <= MAX_EXPORT_RECORDS then
|
|
588
|
-
return true
|
|
589
|
-
end
|
|
590
|
-
local order = root.exports.order
|
|
591
|
-
for index = #order, 1, -1 do
|
|
592
|
-
local id = order[index]
|
|
593
|
-
if not protectedExports[id] then
|
|
594
|
-
local entry = root.exports.records[id]
|
|
595
|
-
if entry then
|
|
596
|
-
projectedBytes = projectedBytes - GetExportEntryBytes(entry)
|
|
597
|
-
projectedCount = projectedCount - 1
|
|
598
|
-
if projectedBytes <= budget and projectedCount <= MAX_EXPORT_RECORDS then
|
|
599
|
-
return true
|
|
600
|
-
end
|
|
601
|
-
end
|
|
602
|
-
end
|
|
603
|
-
end
|
|
604
|
-
return false
|
|
605
|
-
end
|
|
606
|
-
|
|
607
575
|
ns.Stores = {
|
|
608
576
|
Initialize = EnsureState,
|
|
609
577
|
History = History,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Follen (FollenFang)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## Interface: 120100, 50504, 38002, 16001
|
|
1
|
+
## Interface: 120100, 50504, 38002, 16001, 11509, 20506
|
|
2
2
|
## Title: Lychee Dev
|
|
3
|
-
## Version: 3.
|
|
3
|
+
## Version: 3.2.0
|
|
4
4
|
## SavedVariables: LycheeToolkitDB
|
|
5
5
|
## SavedVariablesPerCharacter: LycheeToolkitBridgeDB
|
|
6
6
|
|
|
@@ -12,6 +12,11 @@ Core\ClientGate.lua
|
|
|
12
12
|
Core\Locale.lua
|
|
13
13
|
Core\Locale_enUS.lua
|
|
14
14
|
Core\Compat.lua
|
|
15
|
+
Bridge\CaptureWriter.lua
|
|
16
|
+
Bridge\MemoryProtocol.lua
|
|
17
|
+
Bridge\ReceiverBindings.lua
|
|
18
|
+
Bridge\FocusBindings.lua
|
|
19
|
+
Core\Runtime.lua
|
|
15
20
|
Core\Serializer.lua
|
|
16
21
|
Core\Inspector.lua
|
|
17
22
|
Core\Safety.lua
|
|
@@ -19,44 +24,28 @@ Core\Execute.lua
|
|
|
19
24
|
Core\Stores.lua
|
|
20
25
|
Core\Platform.lua
|
|
21
26
|
Core\Persistence.lua
|
|
22
|
-
Bridge\Session.lua
|
|
23
27
|
Core\Controls.lua
|
|
24
|
-
Bridge\CaptureWriter.lua
|
|
25
|
-
Bridge\MemoryProtocol.lua
|
|
26
28
|
Bridge\SlotProtocol.lua
|
|
27
29
|
Bridge\InputProtection.lua
|
|
28
30
|
Bridge\ProbeExecution.lua
|
|
29
|
-
Bridge\InputProtocol.lua
|
|
30
|
-
Bridge\MatrixSymbol.lua
|
|
31
|
-
Bridge\ReceiptView.lua
|
|
32
31
|
Bridge\ActivityView.lua
|
|
33
|
-
Bridge\ReportStore.lua
|
|
34
|
-
Bridge\Investigation.lua
|
|
35
|
-
Bridge\ProbeRunner.lua
|
|
36
|
-
Bridge\Definitions.lua
|
|
37
32
|
Modules\AutomationHistory.lua
|
|
38
33
|
Modules\AutomationView.lua
|
|
39
|
-
Bridge\ProbeQueue.lua
|
|
40
|
-
Bridge\Reentry.lua
|
|
41
|
-
Bridge\Identity.lua
|
|
42
|
-
Bridge\ReceiverBindings.lua
|
|
43
|
-
Bridge\StartupBeacon.lua
|
|
44
|
-
Bridge\Receiver.lua
|
|
45
34
|
Bridge\SlotRuntime.lua
|
|
46
|
-
Bridge\InputSignal.lua
|
|
47
35
|
Bridge\InputState.lua
|
|
48
36
|
# --- Event catalogs: all four load; Catalog.lua selects ns.Client's table ---
|
|
49
37
|
Modules\Events\CatalogData_Mainline.lua
|
|
50
38
|
Modules\Events\CatalogData_Mists.lua
|
|
51
39
|
Modules\Events\CatalogData_Titan.lua
|
|
52
40
|
Modules\Events\CatalogData_Forever.lua
|
|
41
|
+
Modules\Events\CatalogData_Era.lua
|
|
42
|
+
Modules\Events\CatalogData_Anniversary.lua
|
|
53
43
|
Modules\Events\Catalog.lua
|
|
54
44
|
Modules\Events\Monitor.lua
|
|
55
45
|
# --- Workbench feature modules (object inspection, function trace, diagnostics) ---
|
|
56
46
|
Modules\ObjectInspector.lua
|
|
57
47
|
Modules\FunctionTrace.lua
|
|
58
48
|
Modules\Diagnostics.lua
|
|
59
|
-
Bridge\FaultRunner.lua
|
|
60
49
|
# --- Workbench UI foundation (Widgets, TreeView, Export popup, Window shell) ---
|
|
61
50
|
UI\Theme.lua
|
|
62
51
|
UI\Widgets.lua
|
|
@@ -72,4 +61,4 @@ UI\Pages\Diagnostics.lua
|
|
|
72
61
|
UI\Pages\Events.lua
|
|
73
62
|
UI\Pages\Automation.lua
|
|
74
63
|
UI\Pages\ExportRecords.lua
|
|
75
|
-
Core\
|
|
64
|
+
Core\Startup.lua
|