opencode-knowledge 0.3.3-next.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -137,10 +137,7 @@ async function loadPersonality() {
137
137
  throw new Error(errorMsg);
138
138
  }
139
139
  const __dirname2 = path.dirname(fileURLToPath(import.meta.url));
140
- let personalityPath = path.join(__dirname2, "..", "templates", "personalities", `${role}.txt`);
141
- if (!existsSync2(personalityPath)) {
142
- personalityPath = path.join(__dirname2, "templates", "personalities", `${role}.txt`);
143
- }
140
+ const personalityPath = path.join(__dirname2, "..", "templates", "personalities", `${role}.txt`);
144
141
  if (!existsSync2(personalityPath)) {
145
142
  const errorMsg = `\u274C CONFIGURATION ERROR: Personality file not found at ${personalityPath}. Available roles should have a corresponding .txt file in templates/personalities/`;
146
143
  await logToFile(errorMsg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-knowledge",
3
- "version": "0.3.3-next.1",
3
+ "version": "0.3.3",
4
4
  "description": "An OpenCode plugin",
5
5
  "author": {
6
6
  "name": "msegoviadev",