pi-vault-mind 0.9.8 → 0.10.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/package.json +1 -1
- package/scripts/reset-test-vault.sh +54 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-vault-mind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Passive Obsidian vault extension for pi. Watches @agent markers, dispatches forked subagents (Miner, Broadcaster, Heavy-Lifter), stores in LanceDB with vector + FTS + graph. Multi-agent 'Drop & Forget' workflow for the pi agent ecosystem.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# scripts/reset-test-vault.sh
|
|
3
|
+
#
|
|
4
|
+
# Completely reset a vault for walkthrough testing.
|
|
5
|
+
# Removes all pi-vault-mind state while preserving vault content and Obsidian plugins.
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# ./scripts/reset-test-vault.sh [vault-path]
|
|
9
|
+
#
|
|
10
|
+
# Default vault: ~/workspace/recycvape/ReturnVape/
|
|
11
|
+
|
|
12
|
+
set -euo pipefail
|
|
13
|
+
|
|
14
|
+
VAULT="${1:-$HOME/workspace/recycvape/ReturnVape}"
|
|
15
|
+
|
|
16
|
+
if [ ! -d "$VAULT" ]; then
|
|
17
|
+
echo "ERROR: Vault not found at $VAULT"
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
echo "Resetting vault: $VAULT"
|
|
22
|
+
|
|
23
|
+
# Remove pi-vault-mind state
|
|
24
|
+
rm -rf "$VAULT/.pi"
|
|
25
|
+
rm -f "$VAULT/pi-vault-mind.config.json"
|
|
26
|
+
rm -rf "$VAULT/.lancedb"
|
|
27
|
+
rm -rf "$VAULT/collections"
|
|
28
|
+
rm -f "$VAULT/_sync_state.json"
|
|
29
|
+
|
|
30
|
+
# Update plugin to latest build (if in the pi-vault-mind repo)
|
|
31
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
32
|
+
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
33
|
+
PLUGIN_DIR="$REPO_ROOT/packages/obsidian"
|
|
34
|
+
VAULT_PLUGIN="$VAULT/.obsidian/plugins/vault-mind"
|
|
35
|
+
|
|
36
|
+
if [ -d "$VAULT_PLUGIN" ] && [ -f "$PLUGIN_DIR/main.js" ]; then
|
|
37
|
+
cp "$PLUGIN_DIR/main.js" "$VAULT_PLUGIN/"
|
|
38
|
+
cp "$PLUGIN_DIR/manifest.json" "$VAULT_PLUGIN/"
|
|
39
|
+
cp "$PLUGIN_DIR/styles.css" "$VAULT_PLUGIN/"
|
|
40
|
+
echo "Plugin updated to $(grep '"version"' "$VAULT_PLUGIN/manifest.json" | head -1 | tr -d ' ",' | cut -d: -f2)"
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
echo ""
|
|
44
|
+
echo "✓ Vault reset complete. State removed:"
|
|
45
|
+
echo " - .pi/ (extensions, settings, agent config)"
|
|
46
|
+
echo " - pi-vault-mind.config.json"
|
|
47
|
+
echo " - .lancedb/ (vector index)"
|
|
48
|
+
echo " - collections/ (JSONL data)"
|
|
49
|
+
echo ""
|
|
50
|
+
echo "Preserved:"
|
|
51
|
+
echo " - Vault content (notes, folders)"
|
|
52
|
+
echo " - .obsidian/ (plugins, themes, settings)"
|
|
53
|
+
echo ""
|
|
54
|
+
echo "Next: Open vault in Obsidian → Vault Mind panel → Setup tab"
|