wikimem 0.1.1 → 0.1.2
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/cli/commands/improve.js +1 -1
- package/dist/cli/commands/ingest.js +1 -1
- package/dist/cli/commands/init.js +3 -3
- package/dist/cli/commands/lint.js +1 -1
- package/dist/cli/commands/query.js +1 -1
- package/dist/cli/commands/scrape.js +2 -2
- package/dist/cli/commands/serve.js +1 -1
- package/dist/cli/commands/status.js +2 -2
- package/dist/cli/commands/watch.js +1 -1
- package/dist/core/lint.js +1 -1
- package/dist/core/obsidian.d.ts +1 -1
- package/dist/templates/agents-md.js +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export function registerImproveCommand(program) {
|
|
|
19
19
|
const config = getVaultConfig(vaultRoot);
|
|
20
20
|
const userConfig = loadConfig(config.configPath);
|
|
21
21
|
if (!existsSync(config.schemaPath)) {
|
|
22
|
-
console.error(chalk.red('Not a
|
|
22
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
const providerName = options.provider ?? userConfig.provider ?? 'claude';
|
|
@@ -57,7 +57,7 @@ export function registerIngestCommand(program) {
|
|
|
57
57
|
const config = getVaultConfig(vaultRoot);
|
|
58
58
|
const userConfig = loadConfig(config.configPath);
|
|
59
59
|
if (!existsSync(config.schemaPath)) {
|
|
60
|
-
console.error(chalk.red('Not a
|
|
60
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
61
61
|
process.exit(1);
|
|
62
62
|
}
|
|
63
63
|
const providerName = options.provider ?? userConfig.provider ?? 'claude';
|
|
@@ -48,7 +48,7 @@ _This index is auto-maintained by llmwiki. Each page is listed with a one-line s
|
|
|
48
48
|
|
|
49
49
|
## Sources
|
|
50
50
|
|
|
51
|
-
_No sources ingested yet. Run \`
|
|
51
|
+
_No sources ingested yet. Run \`wikimem ingest <file>\` to get started._
|
|
52
52
|
|
|
53
53
|
## Entities
|
|
54
54
|
|
|
@@ -83,9 +83,9 @@ node_modules/
|
|
|
83
83
|
console.log();
|
|
84
84
|
console.log(chalk.dim('Next steps:'));
|
|
85
85
|
console.log(chalk.dim(' 1. Drop source files into raw/'));
|
|
86
|
-
console.log(chalk.dim(' 2. Run:
|
|
86
|
+
console.log(chalk.dim(' 2. Run: wikimem ingest raw/<file>'));
|
|
87
87
|
console.log(chalk.dim(' 3. Open in Obsidian to see the graph'));
|
|
88
|
-
console.log(chalk.dim(' 4. Run:
|
|
88
|
+
console.log(chalk.dim(' 4. Run: wikimem query "your question"'));
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
//# sourceMappingURL=init.js.map
|
|
@@ -17,7 +17,7 @@ export function registerLintCommand(program) {
|
|
|
17
17
|
const config = getVaultConfig(vaultRoot);
|
|
18
18
|
const userConfig = loadConfig(config.configPath);
|
|
19
19
|
if (!existsSync(config.schemaPath)) {
|
|
20
|
-
console.error(chalk.red('Not a
|
|
20
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
21
21
|
process.exit(1);
|
|
22
22
|
}
|
|
23
23
|
const providerName = options.provider ?? userConfig.provider ?? 'claude';
|
|
@@ -19,7 +19,7 @@ export function registerQueryCommand(program) {
|
|
|
19
19
|
const config = getVaultConfig(vaultRoot);
|
|
20
20
|
const userConfig = loadConfig(config.configPath);
|
|
21
21
|
if (!existsSync(config.schemaPath)) {
|
|
22
|
-
console.error(chalk.red('Not a
|
|
22
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
const providerName = options.provider ?? userConfig.provider ?? 'claude';
|
|
@@ -16,7 +16,7 @@ export function registerScrapeCommand(program) {
|
|
|
16
16
|
const config = getVaultConfig(vaultRoot);
|
|
17
17
|
const userConfig = loadConfig(config.configPath);
|
|
18
18
|
if (!existsSync(config.schemaPath)) {
|
|
19
|
-
console.error(chalk.red('Not a
|
|
19
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
|
22
22
|
const sources = userConfig.sources ?? [];
|
|
@@ -34,7 +34,7 @@ export function registerScrapeCommand(program) {
|
|
|
34
34
|
}
|
|
35
35
|
if (result.filesDeposited > 0) {
|
|
36
36
|
console.log();
|
|
37
|
-
console.log(chalk.dim('Run `
|
|
37
|
+
console.log(chalk.dim('Run `wikimem ingest` to process new raw files into the wiki.'));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
catch (error) {
|
|
@@ -13,7 +13,7 @@ export function registerServeCommand(program) {
|
|
|
13
13
|
const vaultRoot = resolve(options.vault ?? '.');
|
|
14
14
|
const config = getVaultConfig(vaultRoot);
|
|
15
15
|
if (!existsSync(config.schemaPath)) {
|
|
16
|
-
console.error(chalk.red('Not a
|
|
16
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
17
17
|
process.exit(1);
|
|
18
18
|
}
|
|
19
19
|
const port = parseInt(options.port ?? '3141', 10);
|
|
@@ -11,12 +11,12 @@ export function registerStatusCommand(program) {
|
|
|
11
11
|
const vaultRoot = resolve(options.vault ?? '.');
|
|
12
12
|
const config = getVaultConfig(vaultRoot);
|
|
13
13
|
if (!existsSync(config.schemaPath)) {
|
|
14
|
-
console.error(chalk.red('Not a
|
|
14
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
15
15
|
process.exit(1);
|
|
16
16
|
}
|
|
17
17
|
const stats = getVaultStats(config);
|
|
18
18
|
console.log();
|
|
19
|
-
console.log(chalk.bold('
|
|
19
|
+
console.log(chalk.bold('wikimem vault status'));
|
|
20
20
|
console.log(chalk.dim('─'.repeat(40)));
|
|
21
21
|
console.log(` ${chalk.blue('Pages:')} ${stats.pageCount}`);
|
|
22
22
|
console.log(` ${chalk.blue('Words:')} ${stats.wordCount.toLocaleString()}`);
|
|
@@ -16,7 +16,7 @@ export function registerWatchCommand(program) {
|
|
|
16
16
|
const config = getVaultConfig(vaultRoot);
|
|
17
17
|
const userConfig = loadConfig(config.configPath);
|
|
18
18
|
if (!existsSync(config.schemaPath)) {
|
|
19
|
-
console.error(chalk.red('Not a
|
|
19
|
+
console.error(chalk.red('Not a wikimem vault. Run `wikimem init` first.'));
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
|
22
22
|
const providerName = options.provider ?? userConfig.provider ?? 'claude';
|
package/dist/core/lint.js
CHANGED
|
@@ -3,7 +3,7 @@ export async function lintWiki(config, _provider, _options) {
|
|
|
3
3
|
const issues = [];
|
|
4
4
|
const pages = listWikiPages(config.wikiDir);
|
|
5
5
|
if (pages.length === 0) {
|
|
6
|
-
return { score: 0, issues: [{ category: 'empty', severity: 'error', message: 'Wiki has no pages. Run `
|
|
6
|
+
return { score: 0, issues: [{ category: 'empty', severity: 'error', message: 'Wiki has no pages. Run `wikimem ingest` to add content.' }] };
|
|
7
7
|
}
|
|
8
8
|
// Collect all page titles and wikilinks
|
|
9
9
|
const allTitles = new Set();
|
package/dist/core/obsidian.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VaultConfig } from './vault.js';
|
|
2
2
|
/**
|
|
3
3
|
* Obsidian integration — generates .obsidian/ config directory
|
|
4
|
-
* for optimal graph display when `
|
|
4
|
+
* for optimal graph display when `wikimem init` runs.
|
|
5
5
|
*/
|
|
6
6
|
export interface ObsidianConfig {
|
|
7
7
|
app: AppConfig;
|
|
@@ -44,7 +44,7 @@ summary: "One-line summary" # Used in index.md
|
|
|
44
44
|
## Wikilinks
|
|
45
45
|
|
|
46
46
|
Use \`[[Page Title]]\` to link between pages. The LLM maintains these links.
|
|
47
|
-
Orphan pages (no inbound links) are flagged by \`
|
|
47
|
+
Orphan pages (no inbound links) are flagged by \`wikimem lint\`.
|
|
48
48
|
|
|
49
49
|
## Operations
|
|
50
50
|
|