@draig/lexis-two 1.0.5 → 1.0.6
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.
|
@@ -14,11 +14,23 @@ import path from "path";
|
|
|
14
14
|
|
|
15
15
|
// The shared instruction builder is CommonJS; bridge to it from this ES module.
|
|
16
16
|
const require = createRequire(import.meta.url);
|
|
17
|
+
|
|
18
|
+
let lexisInstructionsModule;
|
|
19
|
+
try {
|
|
20
|
+
lexisInstructionsModule = require("../../hooks/lexis-two-instructions");
|
|
21
|
+
} catch (e) {
|
|
22
|
+
try {
|
|
23
|
+
lexisInstructionsModule = require("@draig/lexis-two/hooks/lexis-two-instructions");
|
|
24
|
+
} catch (err) {
|
|
25
|
+
throw new Error("Failed to load lexis-two-instructions: " + err.message);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
17
29
|
const {
|
|
18
30
|
getLexisInstructions,
|
|
19
31
|
getDefaultMode,
|
|
20
32
|
normalizePersistedMode,
|
|
21
|
-
} =
|
|
33
|
+
} = lexisInstructionsModule;
|
|
22
34
|
|
|
23
35
|
// OpenCode has no flag-file convention of its own; keep mode beside its config.
|
|
24
36
|
const statePath = path.join(
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draig/lexis-two",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "The simple way to obtain the best code. Portable rules, skills, and slash commands for AI agents with lowest tokens usage.",
|
|
5
5
|
"main": "./.opencode/plugins/lexis-two.mjs",
|
|
6
6
|
"exports": {
|
|
7
|
+
".": "./.opencode/plugins/lexis-two.mjs",
|
|
7
8
|
"./server": "./.opencode/plugins/lexis-two.mjs",
|
|
8
9
|
"./tui": "./.opencode/plugins/lexis-two-tui.mjs"
|
|
9
10
|
},
|