opencode-knowledge 0.3.2 → 0.3.3-next.1
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/dist/index.js +4 -1
- package/package.json +3 -5
package/dist/index.js
CHANGED
|
@@ -137,7 +137,10 @@ async function loadPersonality() {
|
|
|
137
137
|
throw new Error(errorMsg);
|
|
138
138
|
}
|
|
139
139
|
const __dirname2 = path.dirname(fileURLToPath(import.meta.url));
|
|
140
|
-
|
|
140
|
+
let personalityPath = path.join(__dirname2, "..", "templates", "personalities", `${role}.txt`);
|
|
141
|
+
if (!existsSync2(personalityPath)) {
|
|
142
|
+
personalityPath = path.join(__dirname2, "templates", "personalities", `${role}.txt`);
|
|
143
|
+
}
|
|
141
144
|
if (!existsSync2(personalityPath)) {
|
|
142
145
|
const errorMsg = `\u274C CONFIGURATION ERROR: Personality file not found at ${personalityPath}. Available roles should have a corresponding .txt file in templates/personalities/`;
|
|
143
146
|
await logToFile(errorMsg);
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-knowledge",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3-next.1",
|
|
4
4
|
"description": "An OpenCode plugin",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "msegoviadev",
|
|
7
7
|
"email": "marcos@msegovia.dev"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
+
"main": "./dist/index.js",
|
|
10
11
|
"exports": {
|
|
11
|
-
".":
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"default": "./dist/index.js"
|
|
14
|
-
}
|
|
12
|
+
".": "./dist/index.js"
|
|
15
13
|
},
|
|
16
14
|
"repository": {
|
|
17
15
|
"type": "git",
|