lycheedev 3.2.0 → 3.2.2

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 CHANGED
@@ -28,6 +28,6 @@ lycheedev skill install --release $release --path (Join-Path $env:USERPROFILE '.
28
28
 
29
29
  Source、Data 和 Assets 无需启动游戏。Live 需要运行中的客户端和配套受管插件;恢复时保留原 project、CON、request 与预算。
30
30
 
31
- 本包版本为 3.2.0,通过 `latest` 渠道发布。以已安装版本的 `version`、`describe` 和 `--help` 确认能力。
31
+ 本包版本为 3.2.1,通过 `latest` 渠道发布。以已安装版本的 `version`、`describe` 和 `--help` 确认能力。
32
32
 
33
33
  项目代码采用 MIT,第三方组件声明见包内 LICENSE 与 THIRD_PARTY_NOTICES。
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lycheedev",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "private": false,
5
5
  "description": "Unified native World of Warcraft development toolkit",
6
6
  "license": "MIT",
@@ -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 available=available+1 end
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
@@ -14,6 +14,7 @@ local baselines = {
14
14
  { product = "classic-era", version = "1.15.9", interface = 11509 },
15
15
  { product = "anniversary", version = "2.5.6", interface = 20506 },
16
16
  { product = "titan", version = "3.80.2", interface = 38002 },
17
+ { product = "retail", version = "12.1.5", interface = 120105 },
17
18
  { product = "retail", version = "12.1.0", interface = 120100 },
18
19
  }
19
20
 
@@ -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?)$")
@@ -1,6 +1,6 @@
1
1
  local ADDON_NAME, ns = ...
2
2
 
3
- ns.Release = "3.2.0"
3
+ ns.Release = "3.2.2"
4
4
  ns.Startup = { ready = false, reason = "addon_not_loaded" }
5
5
  _G.LycheeDevInternal = ns
6
6
 
@@ -1,6 +1,6 @@
1
- ## Interface: 120100, 50504, 38002, 16001, 11509, 20506
1
+ ## Interface: 120105, 120100, 50504, 38002, 16001, 11509, 20506
2
2
  ## Title: Lychee Dev
3
- ## Version: 3.2.0
3
+ ## Version: 3.2.2
4
4
  ## SavedVariables: LycheeToolkitDB
5
5
  ## SavedVariablesPerCharacter: LycheeToolkitBridgeDB
6
6
 
@@ -162,9 +162,15 @@ bridge is enabled. Focus and draft text stay intact. Current INPUT publishes
162
162
  `escapeLimit=0`; no Esc is needed. Password, secure text, protected or forbidden
163
163
  editors return `input_focus_unavailable`; retain the CON and wait for the user to
164
164
  leave that field. Combat, loading and stale evidence never authorize keys.
165
- Held Ctrl, Alt, Shift, either Win key or a key in the selected chord delays input
166
- until release. The CLI never forces the user's physical keys up. A user can
167
- still interrupt a chord after that check; only the addon receipt confirms execution.
165
+ Keyboard activity pauses new automatic chords. Every key must be released and
166
+ no keyboard event may occur for 500ms before the CLI rechecks fresh INPUT and
167
+ sends. Holding W also pauses input. The passive listener keeps only the last
168
+ event time, passes keys through normally, and closes with the native backend.
169
+ An active chord finishes and releases its keys before waiting; cancellation
170
+ still releases only keys pressed by that attempt. Submitted or uncertain input
171
+ continues waiting for its original receipt and is never replayed. Keyboard waits
172
+ retain the original request and deadline. A user key can still overlap a chord
173
+ that has already started; only the addon receipt confirms execution.
168
174
 
169
175
  The enabled INPUT sampler remains active when an AFK interface hides UIParent.
170
176
  Loading, world state and focus checks still apply. Fresh telemetry does not
@@ -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.0",
4
- "commit": "3057a9666ab078270b63c7f06de748069b0d1f4b",
3
+ "version": "3.2.2",
4
+ "commit": "0bec60e4406f5d5dc155ee25cef44f9a710e37e8",
5
5
  "binaries": {
6
6
  "windows-amd64": {
7
7
  "path": "native/windows-amd64/lycheedev.exe",
8
- "bytes": 24464896,
9
- "sha256": "d2bcf3bfb1c99d5e440e8b4d3aaa0195467c4372f71619c83079979363c2742c"
8
+ "bytes": 24507904,
9
+ "sha256": "b9e3e472762114fc3af73023c3b9fe3e86660dfb1209c13e8d31a32a481d6ccc"
10
10
  }
11
11
  },
12
12
  "resources": [
@@ -37,8 +37,8 @@
37
37
  },
38
38
  {
39
39
  "path": "addon/Bridge/InputState.lua",
40
- "bytes": 5067,
41
- "sha256": "e2ce20c45d8f941cfa01de6499ec1ca2d88efdbd85e02922e5afaed70a972a10"
40
+ "bytes": 5219,
41
+ "sha256": "b6466861ba7caf3b9958932fc3e92318a504c4d790bd1e519b4b55c2198e43b1"
42
42
  },
43
43
  {
44
44
  "path": "addon/Bridge/MemoryProtocol.lua",
@@ -62,18 +62,18 @@
62
62
  },
63
63
  {
64
64
  "path": "addon/Bridge/SlotRuntime.lua",
65
- "bytes": 9427,
66
- "sha256": "636ed871d85829dcae6aafc8d349d6ea4ec7511a276ffefb2454e5769309fc25"
65
+ "bytes": 10052,
66
+ "sha256": "c542f8394e9929edbedfcbdd2de5f39c2fa14b89d27b2e16258127092a0ea75c"
67
67
  },
68
68
  {
69
69
  "path": "addon/Core/ClientGate.lua",
70
- "bytes": 1473,
71
- "sha256": "5eb428dfb2e38d3c0be517944c28b5bb757769330881ef966b1f2cfc1ff9bf27"
70
+ "bytes": 1538,
71
+ "sha256": "aee7965a2db4e431d140868f46ddc4ec14d8df887d056d5cb67c88e957efe52a"
72
72
  },
73
73
  {
74
74
  "path": "addon/Core/Compat.lua",
75
- "bytes": 4892,
76
- "sha256": "70a007746df96f2789aab59e04f1a69f3101c829da991e33320cf8940e7fb9b2"
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": "27a38b0933e3a73dd03efd985063be326669ea17d2de445bf1431b6935897d95"
116
+ "sha256": "5dcbf55e3018a1b29ee4e92368f34283dadf277b3346289cd14fd1287bcbbc28"
117
117
  },
118
118
  {
119
119
  "path": "addon/Core/Safety.lua",
@@ -142,8 +142,8 @@
142
142
  },
143
143
  {
144
144
  "path": "addon/Lychee Dev.toc",
145
- "bytes": 1997,
146
- "sha256": "2ba2db56aa2461b08bd7483948290e0beba92e965098f67f125f54230d7bfa25"
145
+ "bytes": 2005,
146
+ "sha256": "73573ae8336ceac7505032aa2403804313a8d06ff69c68b1d8044fc81f303833"
147
147
  },
148
148
  {
149
149
  "path": "addon/Media/GitHub.png",
@@ -372,13 +372,13 @@
372
372
  },
373
373
  {
374
374
  "path": "skill/references/live-recovery.md",
375
- "bytes": 16688,
376
- "sha256": "c7c11368ccebf16877b9f8d832c74847097af66cb22f241317d6d980a0e92ef2"
375
+ "bytes": 17140,
376
+ "sha256": "69034087f8ce5253fa3f67f148ae351b70fb7b8c3b345537674a1fbb5f4d7884"
377
377
  },
378
378
  {
379
379
  "path": "skill/references/live-startup.md",
380
- "bytes": 5972,
381
- "sha256": "bf8efb4575b6f44d9dafd4569c52cc4ae8a27c71304af64dd7da758d1620699d"
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": "3057a9666ab078270b63c7f06de748069b0d1f4b",
6452
- "tag": "v3.2.0",
6453
- "archive": "lycheedev-3.2.0-corresponding-source.tar.gz",
6454
- "sha256": "fc6d5ade269f36780f3b03d079b05f20eeb73a4d715a721fb1e6c41c4bdedf8a"
6451
+ "commit": "0bec60e4406f5d5dc155ee25cef44f9a710e37e8",
6452
+ "tag": "v3.2.2",
6453
+ "archive": "lycheedev-3.2.2-corresponding-source.tar.gz",
6454
+ "sha256": "355e2f00c811b235cf936863c85224377e7a3039f77e509c476526d2edb36bc0"
6455
6455
  }
6456
6456
  }