lycheedev 2.5.1 → 3.0.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/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/ActivityView.lua +26 -12
- package/payload/addon/Bridge/InputProtection.lua +63 -0
- package/payload/addon/Bridge/InputState.lua +45 -0
- package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
- package/payload/addon/Bridge/ProbeExecution.lua +147 -0
- package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
- package/payload/addon/Bridge/SlotProtocol.lua +165 -0
- package/payload/addon/Bridge/SlotRuntime.lua +106 -0
- package/payload/addon/Bridge/StartupBeacon.lua +8 -11
- package/payload/addon/Core/Compat.lua +7 -0
- package/payload/addon/Core/Controls.lua +16 -0
- package/payload/addon/Core/Locale.lua +6 -4
- package/payload/addon/Core/Locale_enUS.lua +4 -2
- package/payload/addon/Core/Platform.lua +4 -2
- package/payload/addon/Core/Runtime.lua +17 -6
- package/payload/addon/Lychee Dev.toc +8 -2
- package/payload/addon/Modules/AutomationHistory.lua +119 -0
- package/payload/addon/Modules/AutomationView.lua +26 -6
- package/payload/addon/UI/Pages/About.lua +0 -3
- package/payload/addon/UI/Pages/Automation.lua +40 -27
- package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
- package/payload/addon/UI/Pages/Object.lua +0 -1
- package/payload/addon/UI/Pages/Run.lua +2 -1
- package/payload/addon/UI/Pages/Trace.lua +0 -1
- package/payload/addon/UI/Theme.lua +3 -2
- package/payload/addon/UI/Widgets.lua +32 -22
- package/payload/addon/UI/Window.lua +3 -35
- package/payload/skill/SKILL.md +39 -53
- package/payload/skill/references/commands.md +17 -15
- package/payload/skill/references/error-diagnosis.md +7 -11
- package/payload/skill/references/installation.md +6 -13
- package/payload/skill/references/live-investigation.md +193 -255
- package/payload/skill/references/live-startup.md +62 -130
- package/release.json +95 -65
- package/payload/addon/UI/Pages/Settings.lua +0 -82
|
@@ -10,7 +10,9 @@ local L = ns.L
|
|
|
10
10
|
local W = ns.Widgets
|
|
11
11
|
local view = ns.AutomationView
|
|
12
12
|
|
|
13
|
-
local ROW_HEIGHT =
|
|
13
|
+
local ROW_HEIGHT = 60
|
|
14
|
+
local ROW_GAP = 4
|
|
15
|
+
local ROW_STRIDE = ROW_HEIGHT + ROW_GAP
|
|
14
16
|
local LIST_WIDTH = 256
|
|
15
17
|
local VISIBLE_ROWS = 8
|
|
16
18
|
|
|
@@ -26,6 +28,7 @@ local STATUS_LABELS = {
|
|
|
26
28
|
acknowledged = "AUTO_STATUS_ACKNOWLEDGED",
|
|
27
29
|
cleared = "AUTO_STATUS_CLEARED",
|
|
28
30
|
unavailable = "AUTO_STATUS_UNAVAILABLE",
|
|
31
|
+
interrupted = "AUTO_STATUS_INTERRUPTED",
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
local KIND_LABELS = {
|
|
@@ -47,7 +50,7 @@ local function ShownText(value, fallback)
|
|
|
47
50
|
return tostring(value)
|
|
48
51
|
end
|
|
49
52
|
|
|
50
|
-
local function
|
|
53
|
+
local function GetLifecycleText(record)
|
|
51
54
|
if record.status == "unavailable" and record.errorCode then
|
|
52
55
|
return ShownText(record.errorCode)
|
|
53
56
|
end
|
|
@@ -55,6 +58,14 @@ local function GetStatusText(record)
|
|
|
55
58
|
return key and L[key] or ShownText(record.status, L.UNKNOWN)
|
|
56
59
|
end
|
|
57
60
|
|
|
61
|
+
local function GetStatusText(record)
|
|
62
|
+
if record.status == "reported" or record.status == "acknowledged" then
|
|
63
|
+
if record.probeStatus == "failed" then return L.AUTO_STATUS_FAILED end
|
|
64
|
+
if record.probeStatus == "completed" then return L.AUTO_STATUS_SUCCEEDED end
|
|
65
|
+
end
|
|
66
|
+
return GetLifecycleText(record)
|
|
67
|
+
end
|
|
68
|
+
|
|
58
69
|
local function GetKindLabel(kind)
|
|
59
70
|
local key = KIND_LABELS[kind]
|
|
60
71
|
return key and L[key] or L.EXPORT_KIND_UNKNOWN
|
|
@@ -131,11 +142,13 @@ function ns.CreateAutomationPage(parent)
|
|
|
131
142
|
end, "secondary")
|
|
132
143
|
clearButton:SetPoint("BOTTOMLEFT", 14, 14)
|
|
133
144
|
|
|
134
|
-
local hideNoticeButton
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
145
|
+
local hideNoticeButton, showNoticeButton
|
|
146
|
+
if not ns.SlotRuntime then
|
|
147
|
+
hideNoticeButton = W.CreateButton(page, 118, L.AUTO_HIDE_NOTICE, "secondary")
|
|
148
|
+
hideNoticeButton:SetPoint("BOTTOMRIGHT", -14, 14)
|
|
149
|
+
showNoticeButton = W.CreateButton(page, 128, L.AUTO_SHOW_NOTICE, "secondary")
|
|
150
|
+
showNoticeButton:SetPoint("RIGHT", hideNoticeButton, "LEFT", -8, 0)
|
|
151
|
+
end
|
|
139
152
|
|
|
140
153
|
local executeButton = W.CreateButton(page, 96, L.AUTO_EXECUTE, "primary")
|
|
141
154
|
executeButton:SetPoint("TOPRIGHT", -14, -84)
|
|
@@ -147,7 +160,7 @@ function ns.CreateAutomationPage(parent)
|
|
|
147
160
|
|
|
148
161
|
local listScroll = W.CreateScrollArea(listPanel, 8, 8, 7, 8)
|
|
149
162
|
local listContent = CreateFrame("Frame", nil, listScroll)
|
|
150
|
-
listContent:SetWidth(LIST_WIDTH -
|
|
163
|
+
listContent:SetWidth(LIST_WIDTH - 31)
|
|
151
164
|
listContent:SetHeight(1)
|
|
152
165
|
listScroll:SetScrollChild(listContent)
|
|
153
166
|
|
|
@@ -200,7 +213,7 @@ function ns.CreateAutomationPage(parent)
|
|
|
200
213
|
end)
|
|
201
214
|
|
|
202
215
|
local function StatusColor(record)
|
|
203
|
-
if record.status == "unavailable" or record.probeStatus == "failed" then
|
|
216
|
+
if record.status == "unavailable" or record.status == "interrupted" or record.probeStatus == "failed" then
|
|
204
217
|
return ns.Theme.danger[1], ns.Theme.danger[2], ns.Theme.danger[3], 1
|
|
205
218
|
elseif record.status == "reported" or record.probeStatus == "completed" then
|
|
206
219
|
return ns.Theme.success[1], ns.Theme.success[2], ns.Theme.success[3], 1
|
|
@@ -235,14 +248,14 @@ function ns.CreateAutomationPage(parent)
|
|
|
235
248
|
end
|
|
236
249
|
requestValue:SetText(hasRecord and ShownText(record.requestId) or "")
|
|
237
250
|
kindValue:SetText(hasRecord and GetKindLabel(record.kind) or "")
|
|
238
|
-
statusValue:SetText(hasRecord and
|
|
251
|
+
statusValue:SetText(hasRecord and GetLifecycleText(record) or "")
|
|
239
252
|
codeValue:SetText(hasRecord and FormatCode(record) or "")
|
|
240
253
|
timeValue:SetText(hasRecord and FormatRecorded(record) or "")
|
|
241
254
|
errorValue:SetText(hasRecord
|
|
242
255
|
and ShownText(record.actionError or record.probeError or record.errorCode, L.NOT_AVAILABLE) or "")
|
|
243
256
|
|
|
244
|
-
W.SetButtonEnabled(executeButton, hasRecord and (record.status == "queued" or record.status == "loaded"))
|
|
245
|
-
W.SetButtonEnabled(showNoticeButton, hasRecord and record.receipt ~= nil)
|
|
257
|
+
W.SetButtonEnabled(executeButton, hasRecord and record.transport~="memory-slot" and (record.status == "queued" or record.status == "loaded"))
|
|
258
|
+
if showNoticeButton then W.SetButtonEnabled(showNoticeButton, hasRecord and record.receipt ~= nil) end
|
|
246
259
|
W.SetButtonEnabled(viewReportButton, hasRecord)
|
|
247
260
|
W.SetButtonEnabled(detailsButton, hasRecord)
|
|
248
261
|
end
|
|
@@ -268,14 +281,14 @@ function ns.CreateAutomationPage(parent)
|
|
|
268
281
|
return row
|
|
269
282
|
end
|
|
270
283
|
|
|
271
|
-
row = W.CreateListRow(listContent, ROW_HEIGHT)
|
|
284
|
+
row = W.CreateListRow(listContent, ROW_HEIGHT, true)
|
|
272
285
|
row:SetPoint("TOPLEFT", 0, 0)
|
|
273
286
|
row:SetPoint("TOPRIGHT", 0, 0)
|
|
274
287
|
row.hovered = false
|
|
275
288
|
|
|
276
289
|
local title = row:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
|
277
290
|
ns.Theme.SetFont(title, 12, ns.Theme.text)
|
|
278
|
-
title:SetPoint("TOPLEFT",
|
|
291
|
+
title:SetPoint("TOPLEFT", 14, -11)
|
|
279
292
|
title:SetPoint("TOPRIGHT", -100, -10)
|
|
280
293
|
title:SetJustifyH("LEFT")
|
|
281
294
|
title:SetWordWrap(false)
|
|
@@ -283,14 +296,14 @@ function ns.CreateAutomationPage(parent)
|
|
|
283
296
|
|
|
284
297
|
local status = row:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
285
298
|
ns.Theme.SetFont(status, 11, ns.Theme.textDim)
|
|
286
|
-
status:SetPoint("TOPRIGHT", -
|
|
299
|
+
status:SetPoint("TOPRIGHT", -12, -11)
|
|
287
300
|
status:SetJustifyH("RIGHT")
|
|
288
301
|
row.status = status
|
|
289
302
|
|
|
290
303
|
local meta = row:CreateFontString(nil, "OVERLAY", "GameFontDisableSmall")
|
|
291
304
|
ns.Theme.SetFont(meta, 11, ns.Theme.textDim)
|
|
292
|
-
meta:SetPoint("BOTTOMLEFT",
|
|
293
|
-
meta:SetPoint("BOTTOMRIGHT", -
|
|
305
|
+
meta:SetPoint("BOTTOMLEFT", 14, 10)
|
|
306
|
+
meta:SetPoint("BOTTOMRIGHT", -12, 10)
|
|
294
307
|
meta:SetJustifyH("LEFT")
|
|
295
308
|
meta:SetWordWrap(false)
|
|
296
309
|
meta:SetTextColor(unpack(ns.Theme.textDim))
|
|
@@ -327,7 +340,7 @@ function ns.CreateAutomationPage(parent)
|
|
|
327
340
|
if Restricted(scrollOffset) then
|
|
328
341
|
scrollOffset = 0
|
|
329
342
|
end
|
|
330
|
-
local firstIndex = math.floor((scrollOffset or 0) /
|
|
343
|
+
local firstIndex = math.floor((scrollOffset or 0) / ROW_STRIDE) + 1
|
|
331
344
|
local lastIndex = math.min(#order, firstIndex + VISIBLE_ROWS - 1)
|
|
332
345
|
local poolIndex = 0
|
|
333
346
|
for orderIndex = firstIndex, lastIndex do
|
|
@@ -336,17 +349,17 @@ function ns.CreateAutomationPage(parent)
|
|
|
336
349
|
local row = rows[poolIndex] or AcquireRow(poolIndex)
|
|
337
350
|
row.requestId = record.requestId
|
|
338
351
|
row:ClearAllPoints()
|
|
339
|
-
row:SetPoint("TOPLEFT", 0, -((orderIndex - 1) *
|
|
340
|
-
row:SetPoint("TOPRIGHT", 0, -((orderIndex - 1) *
|
|
352
|
+
row:SetPoint("TOPLEFT", 0, -((orderIndex - 1) * ROW_STRIDE))
|
|
353
|
+
row:SetPoint("TOPRIGHT", 0, -((orderIndex - 1) * ROW_STRIDE))
|
|
341
354
|
row.title:SetText(GetKindLabel(record.kind))
|
|
342
355
|
row.status:SetText(GetStatusText(record))
|
|
343
356
|
row.status:SetTextColor(StatusColor(record))
|
|
344
|
-
row.meta:SetText(FormatTime(record.observedAt)
|
|
357
|
+
row.meta:SetText(FormatTime(record.observedAt))
|
|
345
358
|
ApplyRowState(row)
|
|
346
359
|
row:Show()
|
|
347
360
|
end
|
|
348
361
|
|
|
349
|
-
listContent:SetHeight(math.max(1, #order *
|
|
362
|
+
listContent:SetHeight(math.max(1, #order * ROW_STRIDE - ROW_GAP))
|
|
350
363
|
listScroll:UpdateScrollChildRect()
|
|
351
364
|
|
|
352
365
|
-- Newest record first: when the selection is gone, fall back to the
|
|
@@ -356,8 +369,8 @@ function ns.CreateAutomationPage(parent)
|
|
|
356
369
|
end
|
|
357
370
|
if not selectedRequestId and order[1] then
|
|
358
371
|
selectedRequestId = order[1]
|
|
359
|
-
ShowSelectedReport()
|
|
360
372
|
end
|
|
373
|
+
if selectedRequestId then ShowSelectedReport() end
|
|
361
374
|
for index = 1, #rows do
|
|
362
375
|
ApplyRowState(rows[index])
|
|
363
376
|
end
|
|
@@ -390,7 +403,7 @@ function ns.CreateAutomationPage(parent)
|
|
|
390
403
|
Refresh()
|
|
391
404
|
end)
|
|
392
405
|
|
|
393
|
-
showNoticeButton:SetScript("OnClick", function()
|
|
406
|
+
if showNoticeButton then showNoticeButton:SetScript("OnClick", function()
|
|
394
407
|
if ns.Safety.IsCombatBlocked() then
|
|
395
408
|
ns.Safety.PrintBlocked()
|
|
396
409
|
return
|
|
@@ -398,12 +411,12 @@ function ns.CreateAutomationPage(parent)
|
|
|
398
411
|
if selectedRequestId then
|
|
399
412
|
view.ShowNotice(selectedRequestId)
|
|
400
413
|
end
|
|
401
|
-
end)
|
|
414
|
+
end) end
|
|
402
415
|
|
|
403
416
|
-- Hiding the notice is teardown and must stay available in every state.
|
|
404
|
-
hideNoticeButton:SetScript("OnClick", function()
|
|
417
|
+
if hideNoticeButton then hideNoticeButton:SetScript("OnClick", function()
|
|
405
418
|
view.HideNotice()
|
|
406
|
-
end)
|
|
419
|
+
end) end
|
|
407
420
|
|
|
408
421
|
viewReportButton:SetScript("OnClick", function()
|
|
409
422
|
metadata:Hide();reportArea:Show()
|
|
@@ -45,11 +45,9 @@ local function BuildDiagnosticsPage(parent)
|
|
|
45
45
|
status:SetWidth(ERROR_LIST_WIDTH - 10)
|
|
46
46
|
status:SetJustifyH("LEFT")
|
|
47
47
|
local function SetStatus(text, errorState)
|
|
48
|
-
local
|
|
49
|
-
local g = errorState and accent[2] or 0.60
|
|
50
|
-
local b = errorState and accent[3] or 0.65
|
|
48
|
+
local color = errorState and ns.Theme.danger or ns.Theme.textMuted
|
|
51
49
|
status:SetText(text or "")
|
|
52
|
-
status:SetTextColor(
|
|
50
|
+
status:SetTextColor(color[1], color[2], color[3], 1)
|
|
53
51
|
end
|
|
54
52
|
|
|
55
53
|
local errorsView = CreateFrame("Frame", nil, page)
|
|
@@ -419,7 +419,8 @@ Workbench.RegisterPage{
|
|
|
419
419
|
build = BuildRunPage,
|
|
420
420
|
activate = function(page)
|
|
421
421
|
page.RefreshHistory()
|
|
422
|
-
page.
|
|
422
|
+
-- Opening a page is not a request to capture keyboard input. In
|
|
423
|
+
-- particular, an Agent showing results must still be able to finish.
|
|
423
424
|
end,
|
|
424
425
|
suspend = function(page)
|
|
425
426
|
page.inputPanel.editBox:ClearFocus()
|
|
@@ -3,8 +3,9 @@ local ADDON_NAME, ns = ...
|
|
|
3
3
|
-- Visual constants from Design.md. Loading this table creates no UI objects.
|
|
4
4
|
ns.Theme = {
|
|
5
5
|
window = { .055, .055, .063 },
|
|
6
|
-
surfaceHover = { .
|
|
7
|
-
surfaceSelected = { .
|
|
6
|
+
surfaceHover = { .125, .123, .130 },
|
|
7
|
+
surfaceSelected = { .175, .170, .180 },
|
|
8
|
+
listSelected = { .135, .125, .140 },
|
|
8
9
|
field = { .085, .085, .095 },
|
|
9
10
|
fieldBorder = { .400, .400, .420 },
|
|
10
11
|
sidebar = { .075, .073, .078 },
|
|
@@ -60,7 +60,7 @@ end
|
|
|
60
60
|
local function CreateScrollArea(parent, leftInset, topInset, rightInset, bottomInset, useNativeScrollFrame)
|
|
61
61
|
local scroll = CreateFrame(useNativeScrollFrame and "ScrollFrame" or "Frame", nil, parent)
|
|
62
62
|
scroll:SetPoint("TOPLEFT", leftInset, -topInset)
|
|
63
|
-
scroll:SetPoint("BOTTOMRIGHT", -(rightInset +
|
|
63
|
+
scroll:SetPoint("BOTTOMRIGHT", -(rightInset + 16), bottomInset)
|
|
64
64
|
scroll:SetClipsChildren(true)
|
|
65
65
|
scroll:EnableMouseWheel(true)
|
|
66
66
|
scroll.verticalOffset = 0
|
|
@@ -68,33 +68,29 @@ local function CreateScrollArea(parent, leftInset, topInset, rightInset, bottomI
|
|
|
68
68
|
|
|
69
69
|
local scrollbar = CreateFrame("Slider", nil, parent)
|
|
70
70
|
scrollbar:SetOrientation("VERTICAL")
|
|
71
|
-
scrollbar:SetPoint("TOPRIGHT", -rightInset, -topInset)
|
|
72
|
-
scrollbar:SetPoint("BOTTOMRIGHT", -rightInset, bottomInset)
|
|
73
|
-
scrollbar:SetWidth(
|
|
71
|
+
scrollbar:SetPoint("TOPRIGHT", -rightInset, -topInset - 2)
|
|
72
|
+
scrollbar:SetPoint("BOTTOMRIGHT", -rightInset, bottomInset + 2)
|
|
73
|
+
scrollbar:SetWidth(12)
|
|
74
74
|
scrollbar:SetMinMaxValues(0, 0)
|
|
75
75
|
scrollbar:SetValue(0)
|
|
76
76
|
scrollbar:SetValueStep(1)
|
|
77
77
|
scrollbar:SetObeyStepOnDrag(false)
|
|
78
|
-
scrollbar:SetHitRectInsets(
|
|
78
|
+
scrollbar:SetHitRectInsets(0, 0, 0, 0)
|
|
79
79
|
scrollbar.syncing = false
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
track:SetPoint("TOP", 0, 0)
|
|
84
|
-
track:SetPoint("BOTTOM", 0, 0)
|
|
85
|
-
track:SetWidth(2)
|
|
86
|
-
|
|
81
|
+
-- Match Lychee's quiet, trackless red thumb with a wider drag target.
|
|
82
|
+
-- Keep native Slider input; no custom per-frame drag loop is needed.
|
|
87
83
|
local thumb = scrollbar:CreateTexture(nil, "ARTWORK")
|
|
88
|
-
thumb:SetColorTexture(
|
|
89
|
-
thumb:SetSize(
|
|
84
|
+
thumb:SetColorTexture(ACCENT_R, ACCENT_G, ACCENT_B, 1)
|
|
85
|
+
thumb:SetSize(3, 32)
|
|
90
86
|
scrollbar:SetThumbTexture(thumb)
|
|
91
87
|
scrollbar.thumb = thumb
|
|
92
88
|
|
|
93
89
|
scrollbar:SetScript("OnEnter", function(self)
|
|
94
|
-
self.thumb:SetColorTexture(
|
|
90
|
+
self.thumb:SetColorTexture(Theme.accentHover[1], Theme.accentHover[2], Theme.accentHover[3], 1)
|
|
95
91
|
end)
|
|
96
92
|
scrollbar:SetScript("OnLeave", function(self)
|
|
97
|
-
self.thumb:SetColorTexture(
|
|
93
|
+
self.thumb:SetColorTexture(ACCENT_R, ACCENT_G, ACCENT_B, 1)
|
|
98
94
|
end)
|
|
99
95
|
scrollbar:SetScript("OnValueChanged", function(self, value)
|
|
100
96
|
if not self.syncing then
|
|
@@ -188,7 +184,7 @@ local function CreateScrollArea(parent, leftInset, topInset, rightInset, bottomI
|
|
|
188
184
|
if not (issecretvalue and issecretvalue(trackHeight))
|
|
189
185
|
and trackHeight and trackHeight > 0 and viewHeight > 0 then
|
|
190
186
|
local contentHeight = math.max(viewHeight, viewHeight + range)
|
|
191
|
-
scrollbar.thumb:SetHeight(math.max(
|
|
187
|
+
scrollbar.thumb:SetHeight(math.min(trackHeight, 48, math.max(24, math.floor(trackHeight * viewHeight / contentHeight + 0.5))))
|
|
192
188
|
end
|
|
193
189
|
scrollbar:Show()
|
|
194
190
|
end
|
|
@@ -351,14 +347,17 @@ local function ApplyButtonState(button, state)
|
|
|
351
347
|
local selected = variant == "selected"
|
|
352
348
|
local primary = variant == "primary" or variant == "danger"
|
|
353
349
|
local field = variant == "field"
|
|
354
|
-
local
|
|
355
|
-
|
|
350
|
+
local secondary = variant == "secondary"
|
|
351
|
+
local interacting = enabled and (state == "hover" or state == "pressed")
|
|
352
|
+
local background = field and Theme.field or selected and Theme.surfaceSelected
|
|
353
|
+
or interacting and Theme.surfaceSelected or Theme.action
|
|
354
|
+
button.lycheeSurface:SetColor(background, (field or selected or primary or secondary or interacting) and 1 or 0)
|
|
356
355
|
local color = not enabled and Theme.disabled
|
|
357
|
-
or
|
|
356
|
+
or interacting and (primary and Theme.accentHover or Theme.text)
|
|
358
357
|
or variant == "danger" and Theme.danger
|
|
359
358
|
or primary and Theme.accentHover
|
|
360
359
|
or selected and Theme.text
|
|
361
|
-
or Theme.textMuted
|
|
360
|
+
or secondary and Theme.text or Theme.textMuted
|
|
362
361
|
button.label:SetTextColor(color[1], color[2], color[3], 1)
|
|
363
362
|
end
|
|
364
363
|
|
|
@@ -545,14 +544,18 @@ local function CreatePageHeading(parent, title, help)
|
|
|
545
544
|
return label
|
|
546
545
|
end
|
|
547
546
|
|
|
548
|
-
local function CreateListRow(parent, height)
|
|
547
|
+
local function CreateListRow(parent, height, quiet)
|
|
549
548
|
local row = CreateFrame("Button", nil, parent)
|
|
550
549
|
row:SetHeight(height)
|
|
551
550
|
|
|
552
551
|
local background = row:CreateTexture(nil, "BACKGROUND")
|
|
553
|
-
background:
|
|
552
|
+
background:SetPoint("TOPLEFT", 0, -2)
|
|
553
|
+
background:SetPoint("BOTTOMRIGHT", 0, 2)
|
|
554
554
|
background:SetColorTexture(0, 0, 0, 0)
|
|
555
555
|
row.background = background
|
|
556
|
+
if quiet then
|
|
557
|
+
row.selectionSurface = Theme.CreateRoundedSurface(row, {0, 0, 0, 0}, {radius = 6, inset = 2})
|
|
558
|
+
end
|
|
556
559
|
|
|
557
560
|
local accent = row:CreateTexture(nil, "ARTWORK")
|
|
558
561
|
accent:SetColorTexture(ACCENT_R, ACCENT_G, ACCENT_B, 1)
|
|
@@ -560,6 +563,7 @@ local function CreateListRow(parent, height)
|
|
|
560
563
|
accent:SetSize(2, 22)
|
|
561
564
|
accent:Hide()
|
|
562
565
|
row.accent = accent
|
|
566
|
+
if quiet then accent:SetPoint("LEFT", 4, 0);accent:SetHeight(18) end
|
|
563
567
|
|
|
564
568
|
row.divider = row:CreateTexture(nil, "ARTWORK")
|
|
565
569
|
row.divider:SetColorTexture(0, 0, 0, 0)
|
|
@@ -567,6 +571,12 @@ local function CreateListRow(parent, height)
|
|
|
567
571
|
end
|
|
568
572
|
|
|
569
573
|
local function SetListRowState(row, selected, hovered)
|
|
574
|
+
if row.selectionSurface then
|
|
575
|
+
row.background:SetColorTexture(0, 0, 0, 0)
|
|
576
|
+
row.selectionSurface:SetColor(selected and Theme.listSelected or hovered and Theme.surfaceHover or {0, 0, 0, 0})
|
|
577
|
+
row.accent:SetShown(selected == true)
|
|
578
|
+
return
|
|
579
|
+
end
|
|
570
580
|
if selected then
|
|
571
581
|
row.background:SetColorTexture(unpack(Theme.surfaceSelected))
|
|
572
582
|
row.accent:Show()
|
|
@@ -59,7 +59,6 @@ local exportHooks = {}
|
|
|
59
59
|
local secondaryRoot
|
|
60
60
|
local secondarySource
|
|
61
61
|
local backButton
|
|
62
|
-
local settingsPage
|
|
63
62
|
local pageViewport, pageCanvas
|
|
64
63
|
local pageOffsets = {}
|
|
65
64
|
local UpdateRailVisibility
|
|
@@ -77,7 +76,6 @@ local function HideSecondary()
|
|
|
77
76
|
if secondaryRoot.content then secondaryRoot.content:Hide() end
|
|
78
77
|
secondarySource = nil
|
|
79
78
|
backButton:Hide()
|
|
80
|
-
if windowFrame.settingsButton then windowFrame.settingsButton:SetActive(false) end
|
|
81
79
|
for key, tab in pairs(windowFrame.pageTabs) do tab:SetActive(key == activeKey) end
|
|
82
80
|
if pageViewport then pageViewport:Show() end
|
|
83
81
|
if windowFrame.FitPageViewport then windowFrame.FitPageViewport() end
|
|
@@ -159,7 +157,6 @@ local function ActivatePage(key)
|
|
|
159
157
|
end
|
|
160
158
|
if built then Theme.Reveal(built.container) end
|
|
161
159
|
for pageKey, tab in pairs(windowFrame.pageTabs) do tab:SetActive(pageKey == key) end
|
|
162
|
-
if windowFrame.settingsButton then windowFrame.settingsButton:SetActive(false) end
|
|
163
160
|
if windowFrame.ScrollTabIntoView then windowFrame.ScrollTabIntoView(key) end
|
|
164
161
|
UpdateRailVisibility()
|
|
165
162
|
|
|
@@ -182,8 +179,8 @@ local function CreateHistoryRail()
|
|
|
182
179
|
local label = W.CreateSectionLabel(railRoot, ns.L.HISTORY)
|
|
183
180
|
label:SetPoint("TOPLEFT", 3, 0)
|
|
184
181
|
|
|
185
|
-
local panel = W.CreatePanel(railRoot, colors.
|
|
186
|
-
panel:SetPoint("TOPLEFT", 0, -
|
|
182
|
+
local panel = W.CreatePanel(railRoot, colors.editor[1], colors.editor[2], colors.editor[3], 1)
|
|
183
|
+
panel:SetPoint("TOPLEFT", 0, Layout.CONTENT_TOP - Layout.HEADING_TOP)
|
|
187
184
|
panel:SetPoint("BOTTOMLEFT", 0, 0)
|
|
188
185
|
panel:SetWidth(HISTORY_WIDTH)
|
|
189
186
|
|
|
@@ -339,25 +336,7 @@ local function EnsureWindow()
|
|
|
339
336
|
backButton:Hide()
|
|
340
337
|
frame.backButton = backButton
|
|
341
338
|
|
|
342
|
-
local
|
|
343
|
-
settingsButton:SetSize(SIDEBAR_WIDTH - 20, 40)
|
|
344
|
-
settingsButton:SetPoint("BOTTOMLEFT", header, "BOTTOMLEFT", 10, 16)
|
|
345
|
-
local function ShowSettings()
|
|
346
|
-
if not settingsPage then
|
|
347
|
-
settingsPage=ns.SettingsPage.Create(secondaryRoot,function()
|
|
348
|
-
return frame:GetWidth()-SIDEBAR_WIDTH-22
|
|
349
|
-
end)
|
|
350
|
-
end
|
|
351
|
-
settingsPage.RefreshBindingFields()
|
|
352
|
-
settingsPage.FitContent()
|
|
353
|
-
ns.Workbench.ShowSecondary(settingsPage)
|
|
354
|
-
return true
|
|
355
|
-
end
|
|
356
|
-
settingsButton:SetScript("OnClick", ShowSettings)
|
|
357
|
-
frame.settingsButton = settingsButton
|
|
358
|
-
frame.ShowSettings = ShowSettings
|
|
359
|
-
|
|
360
|
-
local navScroll = W.CreateScrollArea(header, 10, 86, 10, 72)
|
|
339
|
+
local navScroll = W.CreateScrollArea(header, 10, 86, 10, 16)
|
|
361
340
|
local navContent = CreateFrame("Frame", nil, navScroll)
|
|
362
341
|
navContent:SetSize(SIDEBAR_WIDTH - 32, #pageOrder * 44)
|
|
363
342
|
navScroll:SetScrollChild(navContent)
|
|
@@ -468,14 +447,6 @@ ns.Workbench = {
|
|
|
468
447
|
return ActivatePage(key)
|
|
469
448
|
end,
|
|
470
449
|
|
|
471
|
-
ShowSettings = function()
|
|
472
|
-
local shown, reason = ns.Workbench.Open()
|
|
473
|
-
if not shown then return false, reason end
|
|
474
|
-
return windowFrame.ShowSettings()
|
|
475
|
-
end,
|
|
476
|
-
|
|
477
|
-
GetSettingsPage = function() return settingsPage end,
|
|
478
|
-
|
|
479
450
|
GetActivePage = function()
|
|
480
451
|
return activeKey
|
|
481
452
|
end,
|
|
@@ -494,9 +465,6 @@ ns.Workbench = {
|
|
|
494
465
|
windowFrame.pageNext:Hide()
|
|
495
466
|
if railRoot then railRoot:Hide() end
|
|
496
467
|
for _, tab in pairs(windowFrame.pageTabs) do tab:SetActive(false) end
|
|
497
|
-
if windowFrame.settingsButton then
|
|
498
|
-
windowFrame.settingsButton:SetActive(content == settingsPage)
|
|
499
|
-
end
|
|
500
468
|
backButton:Show()
|
|
501
469
|
content:Show()
|
|
502
470
|
secondaryRoot:Show()
|
package/payload/skill/SKILL.md
CHANGED
|
@@ -42,8 +42,8 @@ For any authorized live question, research the exact client build and target
|
|
|
42
42
|
addon revision, form a hypothesis, then write the smallest bounded Lua probe that
|
|
43
43
|
can distinguish it. Choose the APIs, events, actions and assertions from that
|
|
44
44
|
source and the task; probes are not restricted to UI or fixed templates. Declare
|
|
45
|
-
the execution budget
|
|
46
|
-
|
|
45
|
+
the execution budget on the request. The CLI owns native input,
|
|
46
|
+
report persistence and recovery; the probe owns its observation bounds,
|
|
47
47
|
cleanup and honest assertion result. See [live-investigation.md](references/live-investigation.md#design-a-discriminating-probe).
|
|
48
48
|
|
|
49
49
|
The implemented command surface is exactly what `describe --format json`
|
|
@@ -54,49 +54,43 @@ capability.
|
|
|
54
54
|
|
|
55
55
|
## Finish the authorized live task
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
the
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
[
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Treat accepted input, verified report, business assertions and cleared display
|
|
88
|
-
as separate facts. A verified report can contain failed assertions; a pending
|
|
89
|
-
display does not erase the report. New probe loading and report persistence can
|
|
90
|
-
reload the client, so build a reproducible scene after load and finish sampling
|
|
91
|
-
before the report flush. State when the original transient scene could not be
|
|
92
|
-
observed through the available loaded capabilities.
|
|
57
|
+
Use the invoking project's directory consistently with `--project`. Native live
|
|
58
|
+
records are stored in `.lycheedev/live`; keep them out of source control and
|
|
59
|
+
retain the returned `CON-...` connection ID across turns. The CLI owns the 64
|
|
60
|
+
input slots, nonce allocation, native memory reader, reload and crash recovery.
|
|
61
|
+
Do not write slot files, manipulate journals, send raw keys or use wowdump.
|
|
62
|
+
|
|
63
|
+
Prefer `live execute` with that connection, a Lua file or immutable probe revision,
|
|
64
|
+
a stable request key, and explicit execution and host-wait budgets. Successful
|
|
65
|
+
transport requires `complete: true`, `reportState: verified`, `cleanup: complete`;
|
|
66
|
+
read `report.ok` separately to decide whether the probe itself passed. A connection
|
|
67
|
+
or bouncing logo is intermediate progress. Native transport has no QR to scan and
|
|
68
|
+
needs no extra ACK, finish or hide after completion.
|
|
69
|
+
|
|
70
|
+
On exit 6, inspect the reported stage/waiting reason and continue `live resume CON-...`
|
|
71
|
+
in the same project within the task's host-wait budget. A missing client, foreign
|
|
72
|
+
owner or unresolved execution outcome requires resolving that condition, not
|
|
73
|
+
opening another connection. Repeating an execute
|
|
74
|
+
request with identical code, budget and policy resumes its original work; changing
|
|
75
|
+
those inputs under the same key is a conflict. Choose `--policy observation` only
|
|
76
|
+
for probes safe to repeat after runtime loss. The default `opaque` policy retains
|
|
77
|
+
unknown effects instead of replaying them. A pending report or cleanup obligation
|
|
78
|
+
is not a reason to create another request. See [recovery](references/live-investigation.md#recover-without-replay).
|
|
79
|
+
|
|
80
|
+
At the end of the investigation, `live disconnect CON-...` unbinds the quiescent
|
|
81
|
+
runtime and releases its host ownership. Keep the connection only when the task
|
|
82
|
+
requires continued use. Read-only source/data work can continue independently.
|
|
83
|
+
If the selected process exited, disconnect that old CON from its original project;
|
|
84
|
+
the CLI can prove the ended lifetime and retire ownership while preserving unknown
|
|
85
|
+
results. See [process exit](references/live-startup.md#ownership-and-recovery).
|
|
86
|
+
Old OP/BTP records remain historical evidence; do not mix their lifecycle with CON.
|
|
93
87
|
|
|
94
88
|
## Respect the authorization boundary
|
|
95
89
|
|
|
96
90
|
Only run live commands inside the user's granted authorization.
|
|
97
91
|
Use `live instances --passive` for window inventory without input or capture;
|
|
98
|
-
it does not establish actor identity or readiness.
|
|
99
|
-
|
|
92
|
+
it does not establish actor identity or readiness. Use native connect for fresh
|
|
93
|
+
actor binding. Scope discovery
|
|
100
94
|
to the authorized installation/PID when supplied. A named character also limits
|
|
101
95
|
mutation: retain its verified window binding and never fall back to a different
|
|
102
96
|
online character. Under read-only or local-only
|
|
@@ -123,7 +117,7 @@ the project lock must not retarget an investigation already in progress.
|
|
|
123
117
|
For live work, use a saved session to identify the target. The CLI must reconnect
|
|
124
118
|
and verify current readiness before input; historical evidence alone cannot do
|
|
125
119
|
that. When no session exists yet, `live connect` handles a known target directly;
|
|
126
|
-
use `live instances` when
|
|
120
|
+
use `live instances --passive` when window discovery is needed. The CLI completes
|
|
127
121
|
identification, selection and connection mechanically: present the candidates (product/build, character,
|
|
128
122
|
realm) and resolve only the ambiguity the CLI reports. A unique match needs no
|
|
129
123
|
question; several identical candidates stay separate until the user chooses.
|
|
@@ -132,17 +126,9 @@ probe again. This toolkit does not import old tools' data or task registries.
|
|
|
132
126
|
Purely local in-game inspection lives in the in-game `/dev` workbench and does
|
|
133
127
|
not require a CLI connection.
|
|
134
128
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
operation. For an existing custom binding, follow
|
|
139
|
-
[live-startup.md](references/live-startup.md#existing-custom-receiver-bindings).
|
|
140
|
-
|
|
141
|
-
The bouncing Lychee is an activity indicator, not acceptance or completion
|
|
142
|
-
evidence. Receiving input temporarily blocks game keyboard/mouse input; probe
|
|
143
|
-
execution releases that shield while retaining the running indicator. Do not
|
|
144
|
-
hide it or interrupt the receiver just to make a transport screenshot cleaner.
|
|
145
|
-
Use the operation report and final display proof to establish completion.
|
|
129
|
+
Input recovery, short protection phases and activity indicators are handled by
|
|
130
|
+
the CLI/addon; see [input and recovery](references/live-investigation.md#input-and-recovery)
|
|
131
|
+
when focus, held keys or interrupted input explains a pending result.
|
|
146
132
|
|
|
147
133
|
## Interpret the evidence
|
|
148
134
|
|
|
@@ -156,7 +142,7 @@ the capture is no longer referenced. Keep is idempotent; remove is a destructive
|
|
|
156
142
|
CAS operation that refuses external references and never deletes a blob shared by
|
|
157
143
|
another capture. Do not use `cache prune` as a substitute for either decision.
|
|
158
144
|
|
|
159
|
-
For a live result, distinguish `
|
|
145
|
+
For a native live result, distinguish `reportState`, report content and `cleanup`.
|
|
160
146
|
A verified report remains useful when cleanup is pending; `complete: false` must
|
|
161
147
|
not be described as full completion. A probe error and a transport failure are
|
|
162
148
|
also different outcomes. Preserve the operation ID for recovery and the capture
|