chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-04 06:59:09 +00:00
commit 30ec231aaf
19 changed files with 3573 additions and 2863 deletions

View file

@ -22,7 +22,9 @@ export const Plugin = PluginV2.define({
const documents = yield* Effect.forEach(yield* config.entries(), (entry) => {
if (entry.type === "document") return Effect.succeed([{ commands: entry.info.commands }])
return loadDirectory(fs, entry.path).pipe(
Effect.map((commands) => [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }]),
Effect.map((commands) => [
{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) },
]),
)
}).pipe(Effect.map((documents) => documents.flat()))