opencode-manifold 0.5.25 → 0.5.27
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
CHANGED
|
@@ -113,10 +113,17 @@ async function ensureGlobalTemplates(ctx) {
|
|
|
113
113
|
}
|
|
114
114
|
await copyFiles(bundledTemplatesDir, globalTemplatesDir);
|
|
115
115
|
const globalCommandsDir = join(homedir(), ".config", "opencode", "commands");
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
const bundledCommandsDir = join(bundledTemplatesDir, "commands");
|
|
117
|
+
if (existsSync(bundledCommandsDir)) {
|
|
118
|
+
const commandEntries = await readdir(bundledCommandsDir, { withFileTypes: true });
|
|
119
|
+
for (const entry of commandEntries) {
|
|
120
|
+
if (entry.isFile() && entry.name.endsWith(".md")) {
|
|
121
|
+
const src = join(bundledCommandsDir, entry.name);
|
|
122
|
+
const dest = join(globalCommandsDir, entry.name);
|
|
123
|
+
await mkdir(globalCommandsDir, { recursive: true });
|
|
124
|
+
await copyFile(src, dest);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
120
127
|
}
|
|
121
128
|
await ctx.client.app.log({
|
|
122
129
|
body: {
|
package/package.json
CHANGED