clawvault 2.2.0 → 2.2.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/bin/register-core-commands.js +14 -4
- package/dist/{chunk-DHBDH4DN.js → chunk-FDJIZKCW.js} +8 -1
- package/dist/{chunk-6RIHODNR.js → chunk-I5X6J4FX.js} +1 -1
- package/dist/{chunk-IFGDPIFI.js → chunk-OTQW3OMC.js} +89 -10
- package/dist/{chunk-KNDVXXKC.js → chunk-W463YRED.js} +1 -1
- package/dist/commands/context.js +3 -3
- package/dist/commands/doctor.js +2 -2
- package/dist/commands/setup.js +2 -2
- package/dist/commands/sleep.js +2 -2
- package/dist/commands/status.js +2 -2
- package/dist/commands/wake.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -23,8 +23,14 @@ export function registerCoreCommands(
|
|
|
23
23
|
qmdCollection: options.qmdCollection
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
+
const categories = vault.getCategories();
|
|
27
|
+
const memoryCategories = categories.filter(c => !['templates', 'tasks', 'backlog'].includes(c));
|
|
28
|
+
const workCategories = categories.filter(c => ['tasks', 'backlog'].includes(c));
|
|
29
|
+
|
|
26
30
|
console.log(chalk.green('✓ Vault created'));
|
|
27
|
-
console.log(chalk.dim(`
|
|
31
|
+
console.log(chalk.dim(` Memory: ${memoryCategories.join(', ')}`));
|
|
32
|
+
console.log(chalk.dim(` Work: ${workCategories.join(', ')}`));
|
|
33
|
+
console.log(chalk.dim(` Ledger: ledger/raw, ledger/observations, ledger/reflections`));
|
|
28
34
|
|
|
29
35
|
console.log(chalk.cyan('\nSetting up qmd collection...'));
|
|
30
36
|
try {
|
|
@@ -43,9 +49,13 @@ export function registerCoreCommands(
|
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
console.log(chalk.green('\n✅ ClawVault ready!\n'));
|
|
46
|
-
console.log(chalk.
|
|
47
|
-
console.log(chalk.dim(' clawvault
|
|
48
|
-
console.log(chalk.dim(' clawvault
|
|
52
|
+
console.log(' ' + chalk.bold('Try these:'));
|
|
53
|
+
console.log(chalk.dim(' clawvault capture "my first thought" # quick capture'));
|
|
54
|
+
console.log(chalk.dim(' clawvault graph # see your knowledge graph'));
|
|
55
|
+
console.log(chalk.dim(' clawvault context "topic" # graph-aware context'));
|
|
56
|
+
console.log(chalk.dim(' clawvault checkpoint --working-on "task" # save progress'));
|
|
57
|
+
console.log();
|
|
58
|
+
console.log(chalk.dim(' Full docs: https://docs.clawvault.dev'));
|
|
49
59
|
console.log();
|
|
50
60
|
} catch (err) {
|
|
51
61
|
console.error(chalk.red(`Error: ${err.message}`));
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
hasQmd,
|
|
9
9
|
qmdEmbed,
|
|
10
10
|
qmdUpdate
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FDJIZKCW.js";
|
|
12
12
|
import {
|
|
13
13
|
buildOrUpdateMemoryGraphIndex
|
|
14
14
|
} from "./chunk-ZZA73MFY.js";
|
|
@@ -58,11 +58,19 @@ var ClawVault = class {
|
|
|
58
58
|
fs.mkdirSync(catPath, { recursive: true });
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
+
const ledgerDirs = ["ledger/raw", "ledger/observations", "ledger/reflections"];
|
|
62
|
+
for (const dir of ledgerDirs) {
|
|
63
|
+
const dirPath = path.join(vaultPath, dir);
|
|
64
|
+
if (!fs.existsSync(dirPath)) {
|
|
65
|
+
fs.mkdirSync(dirPath, { recursive: true });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
61
68
|
await this.createTemplates();
|
|
62
69
|
const readmePath = path.join(vaultPath, "README.md");
|
|
63
70
|
if (!fs.existsSync(readmePath)) {
|
|
64
71
|
fs.writeFileSync(readmePath, this.generateReadme());
|
|
65
72
|
}
|
|
73
|
+
await this.createWelcomeNote();
|
|
66
74
|
const configPath = path.join(vaultPath, CONFIG_FILE);
|
|
67
75
|
const meta = {
|
|
68
76
|
name: this.config.name,
|
|
@@ -628,6 +636,51 @@ var ClawVault = class {
|
|
|
628
636
|
}
|
|
629
637
|
}
|
|
630
638
|
}
|
|
639
|
+
async createWelcomeNote() {
|
|
640
|
+
const inboxPath = path.join(this.config.path, "inbox", "welcome.md");
|
|
641
|
+
if (fs.existsSync(inboxPath)) return;
|
|
642
|
+
const now = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
643
|
+
const content = `---
|
|
644
|
+
title: "Welcome to ${this.config.name}"
|
|
645
|
+
date: ${now}
|
|
646
|
+
type: fact
|
|
647
|
+
tags: [welcome, getting-started]
|
|
648
|
+
---
|
|
649
|
+
|
|
650
|
+
# Welcome to ${this.config.name}
|
|
651
|
+
|
|
652
|
+
Your vault is ready. Here's what you can do:
|
|
653
|
+
|
|
654
|
+
## Quick Start
|
|
655
|
+
|
|
656
|
+
- **Capture a thought:** \`clawvault capture "your note here"\`
|
|
657
|
+
- **Store structured memory:** \`clawvault store --category decisions --title "My Choice" --content "..."\`
|
|
658
|
+
- **Search your vault:** \`clawvault search "query"\`
|
|
659
|
+
- **See your knowledge graph:** \`clawvault graph\`
|
|
660
|
+
- **Get context for a topic:** \`clawvault context "topic"\`
|
|
661
|
+
|
|
662
|
+
## Vault Structure
|
|
663
|
+
|
|
664
|
+
Your vault organizes memories by type \u2014 decisions, lessons, people, projects, and more.
|
|
665
|
+
Each category is a folder. Each memory is a markdown file with frontmatter.
|
|
666
|
+
|
|
667
|
+
## Observational Memory
|
|
668
|
+
|
|
669
|
+
When connected to an AI agent (like OpenClaw), your vault can automatically observe
|
|
670
|
+
conversations and extract important memories \u2014 decisions, lessons, commitments \u2014 without
|
|
671
|
+
manual effort.
|
|
672
|
+
|
|
673
|
+
## Wiki-Links
|
|
674
|
+
|
|
675
|
+
Use \`[[double brackets]]\` to link between notes. Your memory graph tracks these
|
|
676
|
+
connections, building a knowledge network that grows with you.
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
*Delete this file anytime. It's just here to say hello.*
|
|
681
|
+
`;
|
|
682
|
+
fs.writeFileSync(inboxPath, content);
|
|
683
|
+
}
|
|
631
684
|
async syncMemoryGraphIndex(options = {}) {
|
|
632
685
|
try {
|
|
633
686
|
await buildOrUpdateMemoryGraphIndex(this.config.path, options);
|
|
@@ -635,29 +688,51 @@ var ClawVault = class {
|
|
|
635
688
|
}
|
|
636
689
|
}
|
|
637
690
|
generateReadme() {
|
|
638
|
-
|
|
691
|
+
const coreCategories = this.config.categories.filter((c) => !["templates", "tasks", "backlog"].includes(c));
|
|
692
|
+
const workCategories = this.config.categories.filter((c) => ["tasks", "backlog"].includes(c));
|
|
693
|
+
return `# ${this.config.name}
|
|
639
694
|
|
|
640
695
|
An elephant never forgets.
|
|
641
696
|
|
|
642
697
|
## Structure
|
|
643
698
|
|
|
644
|
-
|
|
699
|
+
### Memory Categories
|
|
700
|
+
${coreCategories.map((c) => `- \`${c}/\` \u2014 ${this.getCategoryDescription(c)}`).join("\n")}
|
|
645
701
|
|
|
646
|
-
|
|
702
|
+
### Work Tracking
|
|
703
|
+
${workCategories.map((c) => `- \`${c}/\` \u2014 ${this.getCategoryDescription(c)}`).join("\n")}
|
|
704
|
+
|
|
705
|
+
### Observational Memory
|
|
706
|
+
- \`ledger/raw/\` \u2014 Raw session transcripts (source of truth)
|
|
707
|
+
- \`ledger/observations/\` \u2014 Compressed observations with importance scores
|
|
708
|
+
- \`ledger/reflections/\` \u2014 Weekly reflection summaries
|
|
709
|
+
|
|
710
|
+
## Quick Reference
|
|
647
711
|
|
|
648
712
|
\`\`\`bash
|
|
713
|
+
# Capture a thought
|
|
714
|
+
clawvault capture "important insight about X"
|
|
715
|
+
|
|
716
|
+
# Store structured memory
|
|
717
|
+
clawvault store --category decisions --title "Choice" --content "We chose X because..."
|
|
718
|
+
|
|
719
|
+
# Search
|
|
649
720
|
clawvault search "query"
|
|
650
|
-
|
|
721
|
+
clawvault vsearch "semantic query" # vector search
|
|
651
722
|
|
|
652
|
-
|
|
723
|
+
# Knowledge graph
|
|
724
|
+
clawvault graph # vault stats
|
|
725
|
+
clawvault context "topic" # graph-aware context retrieval
|
|
653
726
|
|
|
654
|
-
|
|
655
|
-
clawvault
|
|
727
|
+
# Session lifecycle
|
|
728
|
+
clawvault checkpoint --working-on "task"
|
|
729
|
+
clawvault sleep "what I did" --next "what's next"
|
|
730
|
+
clawvault wake # restore context on startup
|
|
656
731
|
\`\`\`
|
|
657
732
|
|
|
658
733
|
---
|
|
659
734
|
|
|
660
|
-
*Managed by [ClawVault](https://
|
|
735
|
+
*Managed by [ClawVault](https://clawvault.dev)*
|
|
661
736
|
`;
|
|
662
737
|
}
|
|
663
738
|
getCategoryDescription(category) {
|
|
@@ -677,7 +752,11 @@ clawvault store --category inbox --title "note" --content "..."
|
|
|
677
752
|
goals: "Long-term and short-term objectives",
|
|
678
753
|
patterns: "Recurring behaviors (\u2192 lessons)",
|
|
679
754
|
inbox: "Quick capture \u2192 process later",
|
|
680
|
-
templates: "Templates for each document type"
|
|
755
|
+
templates: "Templates for each document type",
|
|
756
|
+
agents: "Other agents \u2014 capabilities, trust levels, coordination notes",
|
|
757
|
+
research: "Deep dives, analysis, reference material",
|
|
758
|
+
tasks: "Active work items with status and context",
|
|
759
|
+
backlog: "Future work \u2014 ideas and tasks not yet started"
|
|
681
760
|
};
|
|
682
761
|
return descriptions[category] || category;
|
|
683
762
|
}
|
package/dist/commands/context.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
contextCommand,
|
|
4
4
|
formatContextMarkdown,
|
|
5
5
|
registerContextCommand
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-I5X6J4FX.js";
|
|
7
7
|
import "../chunk-K6XHCUFL.js";
|
|
8
8
|
import "../chunk-Z2XBWN7A.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-OTQW3OMC.js";
|
|
10
|
+
import "../chunk-FDJIZKCW.js";
|
|
11
11
|
import "../chunk-ZZA73MFY.js";
|
|
12
12
|
export {
|
|
13
13
|
buildContext,
|
package/dist/commands/doctor.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ClawVault,
|
|
12
12
|
findVault
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-OTQW3OMC.js";
|
|
14
14
|
import {
|
|
15
15
|
hasQmd
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-FDJIZKCW.js";
|
|
17
17
|
import "../chunk-J7ZWCI2C.js";
|
|
18
18
|
import {
|
|
19
19
|
loadMemoryGraphIndex
|
package/dist/commands/setup.js
CHANGED
package/dist/commands/sleep.js
CHANGED
|
@@ -15,10 +15,10 @@ import "../chunk-K6XHCUFL.js";
|
|
|
15
15
|
import "../chunk-Z2XBWN7A.js";
|
|
16
16
|
import {
|
|
17
17
|
ClawVault
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-OTQW3OMC.js";
|
|
19
19
|
import {
|
|
20
20
|
qmdUpdate
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-FDJIZKCW.js";
|
|
22
22
|
import "../chunk-ZZA73MFY.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/sleep.ts
|
package/dist/commands/status.js
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "../chunk-7ZRP733D.js";
|
|
7
7
|
import {
|
|
8
8
|
ClawVault
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-OTQW3OMC.js";
|
|
10
10
|
import {
|
|
11
11
|
QmdUnavailableError,
|
|
12
12
|
hasQmd
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-FDJIZKCW.js";
|
|
14
14
|
import "../chunk-J7ZWCI2C.js";
|
|
15
15
|
import {
|
|
16
16
|
loadMemoryGraphIndex
|
package/dist/commands/wake.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
import "../chunk-7ZRP733D.js";
|
|
14
14
|
import {
|
|
15
15
|
ClawVault
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-OTQW3OMC.js";
|
|
17
|
+
import "../chunk-FDJIZKCW.js";
|
|
18
18
|
import "../chunk-ZZA73MFY.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/wake.ts
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-ZKGY7WTT.js";
|
|
6
6
|
import {
|
|
7
7
|
setupCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W463YRED.js";
|
|
9
9
|
import {
|
|
10
10
|
registerSyncBdCommand,
|
|
11
11
|
syncBdCommand
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
normalizeContextProfileInput,
|
|
64
64
|
registerContextCommand,
|
|
65
65
|
resolveContextProfile
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-I5X6J4FX.js";
|
|
67
67
|
import "./chunk-K6XHCUFL.js";
|
|
68
68
|
import "./chunk-Z2XBWN7A.js";
|
|
69
69
|
import {
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
ClawVault,
|
|
76
76
|
createVault,
|
|
77
77
|
findVault
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-OTQW3OMC.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_CATEGORIES,
|
|
81
81
|
DEFAULT_CONFIG,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
hasQmd,
|
|
91
91
|
qmdEmbed,
|
|
92
92
|
qmdUpdate
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-FDJIZKCW.js";
|
|
94
94
|
import {
|
|
95
95
|
graphCommand,
|
|
96
96
|
graphSummary
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawvault",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "ClawVault™ - 🐘 An elephant never forgets. Structured memory for OpenClaw agents. Context death resilience, Obsidian-compatible markdown, local semantic search.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|