feat: add wiki mvp commands (#532)

This commit is contained in:
Kevin Codex
2026-04-09 14:54:38 +08:00
committed by GitHub
parent 4ad6bc50c1
commit c328fdf9e2
13 changed files with 764 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { join } from 'path'
import type { WikiPaths } from './types.js'
export const OPENCLAUDE_DIRNAME = '.openclaude'
export const WIKI_DIRNAME = 'wiki'
export function getWikiPaths(cwd: string): WikiPaths {
const root = join(cwd, OPENCLAUDE_DIRNAME, WIKI_DIRNAME)
return {
root,
pagesDir: join(root, 'pages'),
sourcesDir: join(root, 'sources'),
schemaFile: join(root, 'schema.md'),
indexFile: join(root, 'index.md'),
logFile: join(root, 'log.md'),
}
}