nexsight 0.6.2 → 0.6.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/insight4.min.js +1 -1
- package/insight4.nxs +6 -6
- package/package.json +1 -1
package/insight4.nxs
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
"type": "group",
|
|
3
3
|
"name": "insight4",
|
|
4
4
|
"enabled": true,
|
|
5
|
-
"description": "Insight4 — probabilistic opponent affliction tracker for Achaea on the Nexus client. (generated package v0.6.
|
|
5
|
+
"description": "Insight4 — probabilistic opponent affliction tracker for Achaea on the Nexus client. (generated package v0.6.3 — do not edit)",
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
8
|
"type": "function",
|
|
9
9
|
"name": "__meta",
|
|
10
10
|
"enabled": true,
|
|
11
|
-
"code": "{\n \"description\": \"Insight4 — probabilistic opponent affliction tracker for Achaea on the Nexus client.\",\n \"version\": \"0.6.
|
|
11
|
+
"code": "{\n \"description\": \"Insight4 — probabilistic opponent affliction tracker for Achaea on the Nexus client.\",\n \"version\": \"0.6.3\",\n \"website\": \"https://github.com/Log-Wall/insight\",\n \"dependencies\": [\n \"eventStream3\"\n ]\n}"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"type": "function",
|
|
15
15
|
"name": "README",
|
|
16
16
|
"enabled": true,
|
|
17
|
-
"code": "/*\nInsight4 — probabilistic opponent affliction tracker for Achaea.\n\nThis package is a loader and nothing more. Every trigger, every cure table and all of the\ninference live in the published bundle (nexsight@0.6.
|
|
17
|
+
"code": "/*\nInsight4 — probabilistic opponent affliction tracker for Achaea.\n\nThis package is a loader and nothing more. Every trigger, every cure table and all of the\ninference live in the published bundle (nexsight@0.6.3); the reflexes here declare the\npackage, load that exact version, and tear it down again on uninstall.\n\n Requires eventStream3 — it supplies eventStream, nexAction and nexSkills.\n Public API insight.state / insight.api / insight.events\n Docs https://github.com/Log-Wall/insight\n\nUpgrades are explicit: import the newer versioned insight4.nxs. Nothing here self-updates,\nand the opt-in update check only ever prints a notice (ADR-0020).\n*/"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"type": "function",
|
|
21
21
|
"name": "onInstall",
|
|
22
22
|
"enabled": true,
|
|
23
|
-
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.
|
|
23
|
+
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.3. Do not edit.\n// Nexus runs this once, at import. Every later session loads through eventStream's\n// esLoad sweep; this covers the install itself, so a player who imports the package\n// while logged in gets a running tracker without reloading the client.\nnexusclient.display_notice(\"[insight4] installed — version 0.6.3.\", \"#00ccff\");\nnexusclient.reflexes().run_function(\"esLoad\", {}, \"insight4\");"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "function",
|
|
27
27
|
"name": "esLoad",
|
|
28
28
|
"enabled": true,
|
|
29
|
-
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.
|
|
29
|
+
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.3. Do not edit.\n// Load, then raise. The pinned bundle self-boots as it evaluates (ADR-0024), so nothing\n// here calls into it — and nothing here carries combat logic (charter §9, F7).\n//\n// eventStream runs esLoad in every installed package once its own bundle and nexAction\n// are up, but it imports nexSkills from its own esLoad, concurrently with this one. All\n// three globals must exist at the instant the bundle evaluates, so the load waits for\n// them. Past the grace window it loads anyway whenever eventStream is present: a host\n// package that is genuinely absent is insight's own DEGRADED diagnostic to report\n// (ADR-0017), not the loader's to hide (ADR-0030).\nconst RETRY_MS = 100;\nconst MAX_ATTEMPTS = 100;\n\n// Named individually, not looked up on globalThis: the host injects some of these into\n// reflex scope as bindings rather than as global properties.\nconst missingHosts = () =>\n [\n typeof eventStream === \"undefined\" ? \"eventStream\" : \"\",\n typeof nexAction === \"undefined\" ? \"nexAction\" : \"\",\n typeof nexSkills === \"undefined\" ? \"nexSkills\" : \"\",\n ].filter(Boolean);\n\nconst load = () =>\n import(\"https://unpkg.com/nexsight@0.6.3/insight4.min.js\")\n .then(() => eventStream.raiseEvent(\"insightLoaded\", {}))\n .catch((error) =>\n nexusclient.display_notice(`[insight4] failed to load: ${error.message}`, \"red\"),\n );\n\nconst attempt = (n) => {\n const missing = missingHosts();\n if (missing.length === 0) return load();\n if (n < MAX_ATTEMPTS) return setTimeout(() => attempt(n + 1), RETRY_MS);\n if (typeof eventStream !== \"undefined\") return load();\n return nexusclient.display_notice(\n `[insight4] not loaded — missing host package(s): ${missing.join(\", \")}. Install eventStream3, then reload the client.`,\n \"red\",\n );\n};\n\nattempt(0);"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"type": "function",
|
|
33
33
|
"name": "onUninstall",
|
|
34
34
|
"enabled": true,
|
|
35
|
-
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.
|
|
35
|
+
"code": "// Generated by scripts/generateNxsStub.js for insight4@0.6.3. Do not edit.\n// Removing the package removes these reflexes, but the bundle stays evaluated in the\n// page. Without this, host subscriptions, nexAction triggers and scheduler timers would\n// outlive the uninstall until the client reloads. dispose() is the instance handle\n// boot() parks in the realm's symbol registry (ADR-0024): idempotent, and it unmounts\n// globalThis.insight.\nglobalThis[Symbol.for(\"insight4.instance\")]?.dispose();"
|
|
36
36
|
}
|
|
37
37
|
]
|
|
38
38
|
}
|
package/package.json
CHANGED