lycheedev 3.2.7 → 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/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 +32 -107
- 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
package/bin/lycheedev.mjs
CHANGED
|
@@ -60,7 +60,7 @@ if (process.argv[1] && realpathSync(resolve(process.argv[1])) === fileURLToPath(
|
|
|
60
60
|
}
|
|
61
61
|
if (args[commandIndex] === 'update') args = ['update', ...args.slice(0, commandIndex), ...args.slice(commandIndex + 1)];
|
|
62
62
|
activeArgs = args;
|
|
63
|
-
const managedUpdate = args[0] === 'update' && !args.some(arg => ['--help', '-h', '--plan', '--release'].includes(arg) || arg.startsWith('--release='));
|
|
63
|
+
const managedUpdate = args[0] === 'update' && !args.some(arg => ['--help', '-h', '--plan', '--help=true', '-h=true', '--plan=true', '--release'].includes(arg) || arg.startsWith('--release='));
|
|
64
64
|
let result;
|
|
65
65
|
if (managedUpdate) {
|
|
66
66
|
const { update } = await import('./update.mjs');
|
package/bin/update.mjs
CHANGED
|
@@ -83,7 +83,11 @@ export async function update(root, args, nativePath) {
|
|
|
83
83
|
}
|
|
84
84
|
const npm = npmEntry();
|
|
85
85
|
// Validate arguments and all existing targets before downloads or npm writes.
|
|
86
|
-
const
|
|
86
|
+
const planArgs = [...args];
|
|
87
|
+
const planIndex = planArgs.indexOf('--plan=false');
|
|
88
|
+
if (planIndex >= 0) planArgs[planIndex] = '--plan';
|
|
89
|
+
else planArgs.push('--plan');
|
|
90
|
+
const plan = nativeResult(nativePath(root), [...planArgs, '--format=json']);
|
|
87
91
|
const directory = join(prefix, '.lycheedev-update');
|
|
88
92
|
mkdirSync(directory, { recursive: true });
|
|
89
93
|
if (lstatSync(directory).isSymbolicLink() || realpathSync(directory).toLowerCase() !== resolve(directory).toLowerCase()) throw new Error('update.redirected_state');
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -16,11 +16,12 @@ local function AddOutput(output, text)
|
|
|
16
16
|
local prefix = #output.parts > 0 and "\n" or ""
|
|
17
17
|
local remaining = MAX_CAPTURE_BYTES - output.length - #prefix
|
|
18
18
|
if #text > remaining then
|
|
19
|
-
|
|
19
|
+
local marker = "\n... <output truncated>"
|
|
20
|
+
local captured = table.concat(output.parts) .. prefix
|
|
20
21
|
.. text:sub(1, math.max(0, remaining))
|
|
21
|
-
|
|
22
|
+
output.parts = { captured:sub(1, MAX_CAPTURE_BYTES - #marker) .. marker }
|
|
22
23
|
output.truncated = true
|
|
23
|
-
output.length =
|
|
24
|
+
output.length = #output.parts[1]
|
|
24
25
|
return
|
|
25
26
|
end
|
|
26
27
|
|
|
@@ -99,7 +100,21 @@ function ns.Execute(code)
|
|
|
99
100
|
|
|
100
101
|
local formatted, liveTree, storedTree = pcall(function()
|
|
101
102
|
if not succeeded then
|
|
102
|
-
|
|
103
|
+
local diagnostic = L.RUNTIME_ERROR .. tostring(packed[2])
|
|
104
|
+
if #diagnostic >= MAX_CAPTURE_BYTES then
|
|
105
|
+
local marker = "\n... <output truncated>"
|
|
106
|
+
diagnostic = diagnostic:sub(1, MAX_CAPTURE_BYTES - 1 - #marker) .. marker
|
|
107
|
+
end
|
|
108
|
+
local captured = table.concat(output.parts)
|
|
109
|
+
if #captured + 1 + #diagnostic > MAX_CAPTURE_BYTES then
|
|
110
|
+
output.parts = { captured:sub(1, MAX_CAPTURE_BYTES - #diagnostic - 1)
|
|
111
|
+
.. "\n" .. diagnostic }
|
|
112
|
+
output.length = #output.parts[1]
|
|
113
|
+
else
|
|
114
|
+
-- A previous truncation must not suppress the actual failure.
|
|
115
|
+
output.truncated = false
|
|
116
|
+
AddOutput(output, diagnostic)
|
|
117
|
+
end
|
|
103
118
|
return
|
|
104
119
|
end
|
|
105
120
|
local values = { n = packed.n - 1 }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ADDON_NAME, ns = ...
|
|
2
2
|
|
|
3
|
-
ns.Release = "3.2.
|
|
3
|
+
ns.Release = "3.2.9"
|
|
4
4
|
ns.Startup = { ready = false, reason = "addon_not_loaded" }
|
|
5
5
|
_G.LycheeDevInternal = ns
|
|
6
6
|
|
|
@@ -45,6 +45,11 @@ loader:SetScript("OnEvent",function(self,event,name)
|
|
|
45
45
|
else ok,started,reason=true,nil,"startup_module_unavailable" end
|
|
46
46
|
if not ok then started,reason=nil,"startup_exception" end
|
|
47
47
|
if started then phase,failure="ready",""
|
|
48
|
+
elseif reason=="actor_unavailable" and event=="ADDON_LOADED" and IsLoggedIn()==false then
|
|
49
|
+
-- Character identity is not available yet during normal addon loading.
|
|
50
|
+
-- Keep the existing PLAYER_LOGIN retry without reporting an error.
|
|
51
|
+
phase,failure="loading",reason
|
|
52
|
+
ns.Startup.ready,ns.Startup.reason=false,reason
|
|
48
53
|
else
|
|
49
54
|
phase,failure="failed",reason or "startup_failed"
|
|
50
55
|
ns.Startup.ready,ns.Startup.reason=false,failure
|
|
@@ -33,7 +33,11 @@ local function Append(state, text)
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
if state.length + #text > state.maxOutputBytes then
|
|
36
|
-
|
|
36
|
+
local marker = "\n... <output truncated>"
|
|
37
|
+
local captured = table.concat(state.parts)
|
|
38
|
+
state.parts = { captured:sub(1, math.max(0, state.maxOutputBytes - #marker))
|
|
39
|
+
.. marker:sub(1, state.maxOutputBytes) }
|
|
40
|
+
state.length = #state.parts[1]
|
|
37
41
|
state.truncated = true
|
|
38
42
|
state.incomplete = true
|
|
39
43
|
return
|