opencode-knowledge 0.3.0 → 0.3.1-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/command/.gitkeep +0 -0
- package/dist/index.js +4 -4
- package/package.json +2 -3
- package/src/version.ts +0 -1
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,6 @@ function updateSessionState(sessionId, updates) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// src/index.ts
|
|
55
|
-
var __dirname = "/home/runner/work/opencode-knowledge/opencode-knowledge/src";
|
|
56
55
|
var logToFile = async (message) => {
|
|
57
56
|
try {
|
|
58
57
|
const logEntry = `${new Date().toISOString()}: ${message}
|
|
@@ -93,9 +92,9 @@ function parseFrontmatter(content) {
|
|
|
93
92
|
async function loadCommands() {
|
|
94
93
|
const commands = [];
|
|
95
94
|
const __dirname2 = path.dirname(fileURLToPath(import.meta.url));
|
|
96
|
-
|
|
95
|
+
const commandDir = path.join(__dirname2, "command");
|
|
97
96
|
if (!existsSync2(commandDir)) {
|
|
98
|
-
|
|
97
|
+
return commands;
|
|
99
98
|
}
|
|
100
99
|
const glob = new Bun.Glob("**/*.md");
|
|
101
100
|
for await (const file of glob.scan({ cwd: commandDir, absolute: true })) {
|
|
@@ -137,7 +136,8 @@ async function loadPersonality() {
|
|
|
137
136
|
await logToFile(errorMsg);
|
|
138
137
|
throw new Error(errorMsg);
|
|
139
138
|
}
|
|
140
|
-
const
|
|
139
|
+
const __dirname2 = path.dirname(fileURLToPath(import.meta.url));
|
|
140
|
+
const personalityPath = path.join(__dirname2, "..", "templates", "personalities", `${role}.txt`);
|
|
141
141
|
if (!existsSync2(personalityPath)) {
|
|
142
142
|
const errorMsg = `\u274C CONFIGURATION ERROR: Personality file not found at ${personalityPath}. Available roles should have a corresponding .txt file in templates/personalities/`;
|
|
143
143
|
await logToFile(errorMsg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-knowledge",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1-next.1",
|
|
4
4
|
"description": "An OpenCode plugin",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "msegoviadev",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"provenance": true
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
"src/version.ts"
|
|
25
|
+
"dist"
|
|
27
26
|
],
|
|
28
27
|
"dependencies": {
|
|
29
28
|
"@opencode-ai/plugin": "1.0.85"
|
package/src/version.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const VERSION = '0.1.0';
|