mirror-mind 0.39.4 → 0.40.0-next.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/.claude/hooks/log-assistant-reply.sh +37 -4
- package/.claude/hooks/log-session-end.sh +37 -4
- package/.claude/hooks/log-user-prompt.sh +37 -4
- package/.claude/hooks/mirror-inject.sh +37 -4
- package/.claude/hooks/session-start.sh +37 -4
- package/.pi/extensions/mirror-logger.ts +1 -1
- package/docs/releases/index.md +2 -0
- package/docs/releases/v0.39.2.md +10 -3
- package/docs/releases/v0.39.5.md +146 -0
- package/docs/releases/v0.40.0-next.1.md +103 -0
- package/lib/desktop.js +8 -0
- package/package.json +1 -1
- package/plugins/mirror-mind/.claude-plugin/plugin.json +2 -2
- package/plugins/mirror-mind/agy/pre-invocation.sh +46 -4
- package/plugins/mirror-mind/agy/session-start.sh +46 -4
- package/plugins/mirror-mind/agy/stop.sh +46 -4
- package/plugins/mirror-mind/hooks/log-assistant-reply.sh +37 -4
- package/plugins/mirror-mind/hooks/log-session-end.sh +37 -4
- package/plugins/mirror-mind/hooks/log-user-prompt.sh +37 -4
- package/plugins/mirror-mind/hooks/mirror-inject.sh +37 -4
- package/plugins/mirror-mind/hooks/session-start.sh +37 -4
- package/plugins/mirror-mind/mcp_config.json +1 -1
- package/plugins/mirror-mind/plugin.json +2 -2
- package/ts/src/frontDoor/runtimeRoute.ts +2 -8
- package/ts/src/guards/claudePlugin.ts +23 -1
- package/ts/src/guards/retiredSurfaces.ts +9 -4
- package/ts/src/journey/journeyCalls.ts +9 -2
- package/ts/src/journey/journeyDeletion.ts +602 -0
- package/ts/src/runtime/diagnose.ts +25 -6
|
@@ -31,8 +31,13 @@ env_value() {
|
|
|
31
31
|
[ -n "$value" ] || value="$(env_file_value "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/mirror/env")"
|
|
32
32
|
printf '%s' "$value"
|
|
33
33
|
}
|
|
34
|
+
# `note <line> daily` writes at most once a day (UTC): for a setting to fix
|
|
35
|
+
# rather than a hook that failed, so the line stays inside diagnose's seven-day
|
|
36
|
+
# window while the setting stays wrong, without one per hook per turn (CR192).
|
|
37
|
+
# The log is read into a variable, not piped to `grep -q`: under pipefail, a
|
|
38
|
+
# reader that stops early can fail the pipeline and the line be written twice.
|
|
34
39
|
note() {
|
|
35
|
-
local home user
|
|
40
|
+
local home user seen today
|
|
36
41
|
home="$(env_value MIRROR_HOME)"
|
|
37
42
|
user="$(env_value MIRROR_USER)"
|
|
38
43
|
if [ -n "$home" ]; then
|
|
@@ -43,6 +48,11 @@ note() {
|
|
|
43
48
|
else
|
|
44
49
|
return 0
|
|
45
50
|
fi
|
|
51
|
+
if [ "${2:-}" = daily ]; then
|
|
52
|
+
today="$(date -u +%Y-%m-%d)"
|
|
53
|
+
seen="$(grep -F -- ": $1" "$home/hooks.log" 2>/dev/null)"
|
|
54
|
+
case "$seen" in "$today"T*|*$'\n'"$today"T*) return 0 ;; esac
|
|
55
|
+
fi
|
|
46
56
|
mkdir -p "$home" 2>/dev/null \
|
|
47
57
|
&& printf '%s %s: %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$HOOK" "$1" >> "$home/hooks.log" 2>/dev/null
|
|
48
58
|
}
|
|
@@ -58,10 +68,33 @@ ENTRY="$REPO_ROOT/bin/mirror-hook.js"
|
|
|
58
68
|
# directory the entry was found in is searched first: an npm global bin holds
|
|
59
69
|
# the `node` that installed the package beside `mirror-hook`, while a system
|
|
60
70
|
# `/usr/local/bin/node` can be years older (CI's Ubuntu runner has one).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
#
|
|
72
|
+
# MIRROR_NODE is used only as an absolute path to an executable file, as every
|
|
73
|
+
# reader uses it (CR192): a relative one would resolve against the project the
|
|
74
|
+
# runtime spawned this hook from. Anything else is noted with its reason, in
|
|
75
|
+
# the Pi extension's words, once a day, and the search goes on without it.
|
|
76
|
+
# "Absolute" is the MCP locator's pattern too, and it classifies exactly as
|
|
77
|
+
# path.win32.isAbsolute: under Git Bash the Windows installer writes a
|
|
78
|
+
# drive-letter path, C:\Users\...\AppData\Local\Programs\MirrorMind\node\node.exe
|
|
79
|
+
# (PR #47).
|
|
80
|
+
NODE=""
|
|
81
|
+
if [ -n "${MIRROR_NODE:-}" ]; then
|
|
82
|
+
refused=""
|
|
83
|
+
case "$MIRROR_NODE" in
|
|
84
|
+
/*|\\*|[A-Za-z]:[\\/]*)
|
|
85
|
+
if [ -d "$MIRROR_NODE" ]; then refused="a directory"
|
|
86
|
+
elif [ ! -e "$MIRROR_NODE" ]; then refused="missing"
|
|
87
|
+
elif [ ! -f "$MIRROR_NODE" ] || [ ! -x "$MIRROR_NODE" ]; then refused="not executable"
|
|
88
|
+
else NODE="$MIRROR_NODE"
|
|
89
|
+
fi
|
|
90
|
+
;;
|
|
91
|
+
*) refused="relative" ;;
|
|
92
|
+
esac
|
|
93
|
+
if [ -n "$refused" ]; then
|
|
94
|
+
note "MIRROR_NODE=${MIRROR_NODE//[$'\r\n']/} is $refused; searching the PATH and the usual places instead" daily
|
|
95
|
+
fi
|
|
64
96
|
fi
|
|
97
|
+
[ -n "$NODE" ] || NODE="$(command -v node 2>/dev/null || true)"
|
|
65
98
|
for candidate in "$(dirname "$ENTRY")/node" "$HOME/.nvm/current/bin/node" /opt/homebrew/bin/node /usr/local/bin/node; do
|
|
66
99
|
[ -n "$NODE" ] && break
|
|
67
100
|
[ -x "$candidate" ] && NODE="$candidate"
|
|
@@ -31,8 +31,13 @@ env_value() {
|
|
|
31
31
|
[ -n "$value" ] || value="$(env_file_value "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/mirror/env")"
|
|
32
32
|
printf '%s' "$value"
|
|
33
33
|
}
|
|
34
|
+
# `note <line> daily` writes at most once a day (UTC): for a setting to fix
|
|
35
|
+
# rather than a hook that failed, so the line stays inside diagnose's seven-day
|
|
36
|
+
# window while the setting stays wrong, without one per hook per turn (CR192).
|
|
37
|
+
# The log is read into a variable, not piped to `grep -q`: under pipefail, a
|
|
38
|
+
# reader that stops early can fail the pipeline and the line be written twice.
|
|
34
39
|
note() {
|
|
35
|
-
local home user
|
|
40
|
+
local home user seen today
|
|
36
41
|
home="$(env_value MIRROR_HOME)"
|
|
37
42
|
user="$(env_value MIRROR_USER)"
|
|
38
43
|
if [ -n "$home" ]; then
|
|
@@ -43,6 +48,11 @@ note() {
|
|
|
43
48
|
else
|
|
44
49
|
return 0
|
|
45
50
|
fi
|
|
51
|
+
if [ "${2:-}" = daily ]; then
|
|
52
|
+
today="$(date -u +%Y-%m-%d)"
|
|
53
|
+
seen="$(grep -F -- ": $1" "$home/hooks.log" 2>/dev/null)"
|
|
54
|
+
case "$seen" in "$today"T*|*$'\n'"$today"T*) return 0 ;; esac
|
|
55
|
+
fi
|
|
46
56
|
mkdir -p "$home" 2>/dev/null \
|
|
47
57
|
&& printf '%s %s: %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$HOOK" "$1" >> "$home/hooks.log" 2>/dev/null
|
|
48
58
|
}
|
|
@@ -58,10 +68,33 @@ ENTRY="$REPO_ROOT/bin/mirror-hook.js"
|
|
|
58
68
|
# directory the entry was found in is searched first: an npm global bin holds
|
|
59
69
|
# the `node` that installed the package beside `mirror-hook`, while a system
|
|
60
70
|
# `/usr/local/bin/node` can be years older (CI's Ubuntu runner has one).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
#
|
|
72
|
+
# MIRROR_NODE is used only as an absolute path to an executable file, as every
|
|
73
|
+
# reader uses it (CR192): a relative one would resolve against the project the
|
|
74
|
+
# runtime spawned this hook from. Anything else is noted with its reason, in
|
|
75
|
+
# the Pi extension's words, once a day, and the search goes on without it.
|
|
76
|
+
# "Absolute" is the MCP locator's pattern too, and it classifies exactly as
|
|
77
|
+
# path.win32.isAbsolute: under Git Bash the Windows installer writes a
|
|
78
|
+
# drive-letter path, C:\Users\...\AppData\Local\Programs\MirrorMind\node\node.exe
|
|
79
|
+
# (PR #47).
|
|
80
|
+
NODE=""
|
|
81
|
+
if [ -n "${MIRROR_NODE:-}" ]; then
|
|
82
|
+
refused=""
|
|
83
|
+
case "$MIRROR_NODE" in
|
|
84
|
+
/*|\\*|[A-Za-z]:[\\/]*)
|
|
85
|
+
if [ -d "$MIRROR_NODE" ]; then refused="a directory"
|
|
86
|
+
elif [ ! -e "$MIRROR_NODE" ]; then refused="missing"
|
|
87
|
+
elif [ ! -f "$MIRROR_NODE" ] || [ ! -x "$MIRROR_NODE" ]; then refused="not executable"
|
|
88
|
+
else NODE="$MIRROR_NODE"
|
|
89
|
+
fi
|
|
90
|
+
;;
|
|
91
|
+
*) refused="relative" ;;
|
|
92
|
+
esac
|
|
93
|
+
if [ -n "$refused" ]; then
|
|
94
|
+
note "MIRROR_NODE=${MIRROR_NODE//[$'\r\n']/} is $refused; searching the PATH and the usual places instead" daily
|
|
95
|
+
fi
|
|
64
96
|
fi
|
|
97
|
+
[ -n "$NODE" ] || NODE="$(command -v node 2>/dev/null || true)"
|
|
65
98
|
for candidate in "$(dirname "$ENTRY")/node" "$HOME/.nvm/current/bin/node" /opt/homebrew/bin/node /usr/local/bin/node; do
|
|
66
99
|
[ -n "$NODE" ] && break
|
|
67
100
|
[ -x "$candidate" ] && NODE="$candidate"
|
|
@@ -31,8 +31,13 @@ env_value() {
|
|
|
31
31
|
[ -n "$value" ] || value="$(env_file_value "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/mirror/env")"
|
|
32
32
|
printf '%s' "$value"
|
|
33
33
|
}
|
|
34
|
+
# `note <line> daily` writes at most once a day (UTC): for a setting to fix
|
|
35
|
+
# rather than a hook that failed, so the line stays inside diagnose's seven-day
|
|
36
|
+
# window while the setting stays wrong, without one per hook per turn (CR192).
|
|
37
|
+
# The log is read into a variable, not piped to `grep -q`: under pipefail, a
|
|
38
|
+
# reader that stops early can fail the pipeline and the line be written twice.
|
|
34
39
|
note() {
|
|
35
|
-
local home user
|
|
40
|
+
local home user seen today
|
|
36
41
|
home="$(env_value MIRROR_HOME)"
|
|
37
42
|
user="$(env_value MIRROR_USER)"
|
|
38
43
|
if [ -n "$home" ]; then
|
|
@@ -43,6 +48,11 @@ note() {
|
|
|
43
48
|
else
|
|
44
49
|
return 0
|
|
45
50
|
fi
|
|
51
|
+
if [ "${2:-}" = daily ]; then
|
|
52
|
+
today="$(date -u +%Y-%m-%d)"
|
|
53
|
+
seen="$(grep -F -- ": $1" "$home/hooks.log" 2>/dev/null)"
|
|
54
|
+
case "$seen" in "$today"T*|*$'\n'"$today"T*) return 0 ;; esac
|
|
55
|
+
fi
|
|
46
56
|
mkdir -p "$home" 2>/dev/null \
|
|
47
57
|
&& printf '%s %s: %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$HOOK" "$1" >> "$home/hooks.log" 2>/dev/null
|
|
48
58
|
}
|
|
@@ -58,10 +68,33 @@ ENTRY="$REPO_ROOT/bin/mirror-hook.js"
|
|
|
58
68
|
# directory the entry was found in is searched first: an npm global bin holds
|
|
59
69
|
# the `node` that installed the package beside `mirror-hook`, while a system
|
|
60
70
|
# `/usr/local/bin/node` can be years older (CI's Ubuntu runner has one).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
#
|
|
72
|
+
# MIRROR_NODE is used only as an absolute path to an executable file, as every
|
|
73
|
+
# reader uses it (CR192): a relative one would resolve against the project the
|
|
74
|
+
# runtime spawned this hook from. Anything else is noted with its reason, in
|
|
75
|
+
# the Pi extension's words, once a day, and the search goes on without it.
|
|
76
|
+
# "Absolute" is the MCP locator's pattern too, and it classifies exactly as
|
|
77
|
+
# path.win32.isAbsolute: under Git Bash the Windows installer writes a
|
|
78
|
+
# drive-letter path, C:\Users\...\AppData\Local\Programs\MirrorMind\node\node.exe
|
|
79
|
+
# (PR #47).
|
|
80
|
+
NODE=""
|
|
81
|
+
if [ -n "${MIRROR_NODE:-}" ]; then
|
|
82
|
+
refused=""
|
|
83
|
+
case "$MIRROR_NODE" in
|
|
84
|
+
/*|\\*|[A-Za-z]:[\\/]*)
|
|
85
|
+
if [ -d "$MIRROR_NODE" ]; then refused="a directory"
|
|
86
|
+
elif [ ! -e "$MIRROR_NODE" ]; then refused="missing"
|
|
87
|
+
elif [ ! -f "$MIRROR_NODE" ] || [ ! -x "$MIRROR_NODE" ]; then refused="not executable"
|
|
88
|
+
else NODE="$MIRROR_NODE"
|
|
89
|
+
fi
|
|
90
|
+
;;
|
|
91
|
+
*) refused="relative" ;;
|
|
92
|
+
esac
|
|
93
|
+
if [ -n "$refused" ]; then
|
|
94
|
+
note "MIRROR_NODE=${MIRROR_NODE//[$'\r\n']/} is $refused; searching the PATH and the usual places instead" daily
|
|
95
|
+
fi
|
|
64
96
|
fi
|
|
97
|
+
[ -n "$NODE" ] || NODE="$(command -v node 2>/dev/null || true)"
|
|
65
98
|
for candidate in "$(dirname "$ENTRY")/node" "$HOME/.nvm/current/bin/node" /opt/homebrew/bin/node /usr/local/bin/node; do
|
|
66
99
|
[ -n "$NODE" ] && break
|
|
67
100
|
[ -x "$candidate" ] && NODE="$candidate"
|
|
@@ -31,8 +31,13 @@ env_value() {
|
|
|
31
31
|
[ -n "$value" ] || value="$(env_file_value "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/mirror/env")"
|
|
32
32
|
printf '%s' "$value"
|
|
33
33
|
}
|
|
34
|
+
# `note <line> daily` writes at most once a day (UTC): for a setting to fix
|
|
35
|
+
# rather than a hook that failed, so the line stays inside diagnose's seven-day
|
|
36
|
+
# window while the setting stays wrong, without one per hook per turn (CR192).
|
|
37
|
+
# The log is read into a variable, not piped to `grep -q`: under pipefail, a
|
|
38
|
+
# reader that stops early can fail the pipeline and the line be written twice.
|
|
34
39
|
note() {
|
|
35
|
-
local home user
|
|
40
|
+
local home user seen today
|
|
36
41
|
home="$(env_value MIRROR_HOME)"
|
|
37
42
|
user="$(env_value MIRROR_USER)"
|
|
38
43
|
if [ -n "$home" ]; then
|
|
@@ -43,6 +48,11 @@ note() {
|
|
|
43
48
|
else
|
|
44
49
|
return 0
|
|
45
50
|
fi
|
|
51
|
+
if [ "${2:-}" = daily ]; then
|
|
52
|
+
today="$(date -u +%Y-%m-%d)"
|
|
53
|
+
seen="$(grep -F -- ": $1" "$home/hooks.log" 2>/dev/null)"
|
|
54
|
+
case "$seen" in "$today"T*|*$'\n'"$today"T*) return 0 ;; esac
|
|
55
|
+
fi
|
|
46
56
|
mkdir -p "$home" 2>/dev/null \
|
|
47
57
|
&& printf '%s %s: %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$HOOK" "$1" >> "$home/hooks.log" 2>/dev/null
|
|
48
58
|
}
|
|
@@ -58,10 +68,33 @@ ENTRY="$REPO_ROOT/bin/mirror-hook.js"
|
|
|
58
68
|
# directory the entry was found in is searched first: an npm global bin holds
|
|
59
69
|
# the `node` that installed the package beside `mirror-hook`, while a system
|
|
60
70
|
# `/usr/local/bin/node` can be years older (CI's Ubuntu runner has one).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
#
|
|
72
|
+
# MIRROR_NODE is used only as an absolute path to an executable file, as every
|
|
73
|
+
# reader uses it (CR192): a relative one would resolve against the project the
|
|
74
|
+
# runtime spawned this hook from. Anything else is noted with its reason, in
|
|
75
|
+
# the Pi extension's words, once a day, and the search goes on without it.
|
|
76
|
+
# "Absolute" is the MCP locator's pattern too, and it classifies exactly as
|
|
77
|
+
# path.win32.isAbsolute: under Git Bash the Windows installer writes a
|
|
78
|
+
# drive-letter path, C:\Users\...\AppData\Local\Programs\MirrorMind\node\node.exe
|
|
79
|
+
# (PR #47).
|
|
80
|
+
NODE=""
|
|
81
|
+
if [ -n "${MIRROR_NODE:-}" ]; then
|
|
82
|
+
refused=""
|
|
83
|
+
case "$MIRROR_NODE" in
|
|
84
|
+
/*|\\*|[A-Za-z]:[\\/]*)
|
|
85
|
+
if [ -d "$MIRROR_NODE" ]; then refused="a directory"
|
|
86
|
+
elif [ ! -e "$MIRROR_NODE" ]; then refused="missing"
|
|
87
|
+
elif [ ! -f "$MIRROR_NODE" ] || [ ! -x "$MIRROR_NODE" ]; then refused="not executable"
|
|
88
|
+
else NODE="$MIRROR_NODE"
|
|
89
|
+
fi
|
|
90
|
+
;;
|
|
91
|
+
*) refused="relative" ;;
|
|
92
|
+
esac
|
|
93
|
+
if [ -n "$refused" ]; then
|
|
94
|
+
note "MIRROR_NODE=${MIRROR_NODE//[$'\r\n']/} is $refused; searching the PATH and the usual places instead" daily
|
|
95
|
+
fi
|
|
64
96
|
fi
|
|
97
|
+
[ -n "$NODE" ] || NODE="$(command -v node 2>/dev/null || true)"
|
|
65
98
|
for candidate in "$(dirname "$ENTRY")/node" "$HOME/.nvm/current/bin/node" /opt/homebrew/bin/node /usr/local/bin/node; do
|
|
66
99
|
[ -n "$NODE" ] && break
|
|
67
100
|
[ -x "$candidate" ] && NODE="$candidate"
|
|
@@ -31,8 +31,13 @@ env_value() {
|
|
|
31
31
|
[ -n "$value" ] || value="$(env_file_value "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/mirror/env")"
|
|
32
32
|
printf '%s' "$value"
|
|
33
33
|
}
|
|
34
|
+
# `note <line> daily` writes at most once a day (UTC): for a setting to fix
|
|
35
|
+
# rather than a hook that failed, so the line stays inside diagnose's seven-day
|
|
36
|
+
# window while the setting stays wrong, without one per hook per turn (CR192).
|
|
37
|
+
# The log is read into a variable, not piped to `grep -q`: under pipefail, a
|
|
38
|
+
# reader that stops early can fail the pipeline and the line be written twice.
|
|
34
39
|
note() {
|
|
35
|
-
local home user
|
|
40
|
+
local home user seen today
|
|
36
41
|
home="$(env_value MIRROR_HOME)"
|
|
37
42
|
user="$(env_value MIRROR_USER)"
|
|
38
43
|
if [ -n "$home" ]; then
|
|
@@ -43,6 +48,11 @@ note() {
|
|
|
43
48
|
else
|
|
44
49
|
return 0
|
|
45
50
|
fi
|
|
51
|
+
if [ "${2:-}" = daily ]; then
|
|
52
|
+
today="$(date -u +%Y-%m-%d)"
|
|
53
|
+
seen="$(grep -F -- ": $1" "$home/hooks.log" 2>/dev/null)"
|
|
54
|
+
case "$seen" in "$today"T*|*$'\n'"$today"T*) return 0 ;; esac
|
|
55
|
+
fi
|
|
46
56
|
mkdir -p "$home" 2>/dev/null \
|
|
47
57
|
&& printf '%s %s: %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$HOOK" "$1" >> "$home/hooks.log" 2>/dev/null
|
|
48
58
|
}
|
|
@@ -58,10 +68,33 @@ ENTRY="$REPO_ROOT/bin/mirror-hook.js"
|
|
|
58
68
|
# directory the entry was found in is searched first: an npm global bin holds
|
|
59
69
|
# the `node` that installed the package beside `mirror-hook`, while a system
|
|
60
70
|
# `/usr/local/bin/node` can be years older (CI's Ubuntu runner has one).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
#
|
|
72
|
+
# MIRROR_NODE is used only as an absolute path to an executable file, as every
|
|
73
|
+
# reader uses it (CR192): a relative one would resolve against the project the
|
|
74
|
+
# runtime spawned this hook from. Anything else is noted with its reason, in
|
|
75
|
+
# the Pi extension's words, once a day, and the search goes on without it.
|
|
76
|
+
# "Absolute" is the MCP locator's pattern too, and it classifies exactly as
|
|
77
|
+
# path.win32.isAbsolute: under Git Bash the Windows installer writes a
|
|
78
|
+
# drive-letter path, C:\Users\...\AppData\Local\Programs\MirrorMind\node\node.exe
|
|
79
|
+
# (PR #47).
|
|
80
|
+
NODE=""
|
|
81
|
+
if [ -n "${MIRROR_NODE:-}" ]; then
|
|
82
|
+
refused=""
|
|
83
|
+
case "$MIRROR_NODE" in
|
|
84
|
+
/*|\\*|[A-Za-z]:[\\/]*)
|
|
85
|
+
if [ -d "$MIRROR_NODE" ]; then refused="a directory"
|
|
86
|
+
elif [ ! -e "$MIRROR_NODE" ]; then refused="missing"
|
|
87
|
+
elif [ ! -f "$MIRROR_NODE" ] || [ ! -x "$MIRROR_NODE" ]; then refused="not executable"
|
|
88
|
+
else NODE="$MIRROR_NODE"
|
|
89
|
+
fi
|
|
90
|
+
;;
|
|
91
|
+
*) refused="relative" ;;
|
|
92
|
+
esac
|
|
93
|
+
if [ -n "$refused" ]; then
|
|
94
|
+
note "MIRROR_NODE=${MIRROR_NODE//[$'\r\n']/} is $refused; searching the PATH and the usual places instead" daily
|
|
95
|
+
fi
|
|
64
96
|
fi
|
|
97
|
+
[ -n "$NODE" ] || NODE="$(command -v node 2>/dev/null || true)"
|
|
65
98
|
for candidate in "$(dirname "$ENTRY")/node" "$HOME/.nvm/current/bin/node" /opt/homebrew/bin/node /usr/local/bin/node; do
|
|
66
99
|
[ -n "$NODE" ] && break
|
|
67
100
|
[ -x "$candidate" ] && NODE="$candidate"
|
|
@@ -235,7 +235,7 @@ export interface NodeResolution {
|
|
|
235
235
|
* then `NODE_CANDIDATES`. Not `process.execPath`: Pi may run on a Node older
|
|
236
236
|
* than the core needs. On Windows the PATH is the last place looked.
|
|
237
237
|
*
|
|
238
|
-
* A relative `MIRROR_NODE` is refused
|
|
238
|
+
* A relative `MIRROR_NODE` is refused, as every reader refuses one (CR192): it
|
|
239
239
|
* would resolve against whatever project Pi was opened in.
|
|
240
240
|
*
|
|
241
241
|
* The absolute candidates make "nothing anywhere" a fact about the host, so
|
package/docs/releases/index.md
CHANGED
|
@@ -12,6 +12,8 @@ Future release notes should use the structure defined in [Release Notes](../proc
|
|
|
12
12
|
|
|
13
13
|
## Releases
|
|
14
14
|
|
|
15
|
+
- [v0.40.0-next.1 — A Journey Can Go, Showing What Goes With It](v0.40.0-next.1.md) — preview under npm's `next`, read by no updater, for Nautilus for Mirror (the release train): CR200, `mirror-mind/desktop` gains `previewJourneyDeletion` and `deleteJourneyWithRecords`, deleting a Journey with every record that belongs to it after a preview that counts it, by digest, behind a verified backup; child Journeys refuse. Terminal users receive it with v0.40.0. No migration.
|
|
16
|
+
- [v0.39.5 — The Node You Named, or Why Not](v0.39.5.md) — patch release of CR192, from PR #47's thread (@rodrigoimmaginario): the hook wrappers, the plugin's MCP entry, and `runtime diagnose` use `MIRROR_NODE` only as an absolute path to an executable file, as the Pi extension does; a relative value is never run, and a refused one is named with its reason, once a day in `hooks.log` and on the MCP entry's stderr; the Windows installer's drive-letter path counts as absolute, in CI under Git Bash and on the installer. No migration.
|
|
15
17
|
- [v0.39.4 — The Reply Finds Its Prompt](v0.39.4.md) — patch release of PR #51 (@alannascimento1), CR166 and CR196: on Claude Code, a prompt typed while a turn runs and a journey entered in plain words no longer lose the reply; `nothing_waiting` in `hooks.log` means a lost reply again. No schema change, no migration.
|
|
16
18
|
- [v0.39.3 — Windows Gets Its Hooks](v0.39.3.md) — patch release of PR #53, PR #50, and PR #54 (@rodrigoimmaginario): the plugin's hook wrappers and MCP locator run the package's own bin when npm's global entry is a shell shim, so Claude Code hooks and the MCP server work on a Windows package install; `runtime diagnose` no longer counts its own verdict as a front-door error (CR139); the docs point a Windows reader to the installer in its own repository. No migration.
|
|
17
19
|
- [v0.39.2 — Input, Read the Platform's Way](v0.39.2.md) — patch release of PR #49 and PR #48 (@rodrigoimmaginario), CR194, and CR193: `runtime diagnose` stops warning every Windows install about Node; a PowerShell byte-order mark is not stored; stdin is decoded by its mark, UTF-8 or UTF-16, and `identity set` and `journey update` gain `--file`, the route around PowerShell 5.1's ASCII pipe; `package-lock.json` names the package at its version, and the release doctor checks it. No migration.
|
package/docs/releases/v0.39.2.md
CHANGED
|
@@ -89,11 +89,18 @@ Validated on 2026-11-03 against a scratch copy of the maintainer's database: UTF
|
|
|
89
89
|
with a mark, and UTF-16LE as PowerShell 5.1 writes it, through `--file` and through stdin;
|
|
90
90
|
the refusals writing nothing; the one-liner pipe unchanged.
|
|
91
91
|
|
|
92
|
+
**Post-release Windows validation, 2026-11-03.** Rodrigo Immaginario ran v0.39.2 through
|
|
93
|
+
npm's `mirror.ps1` shim on Windows PowerShell 5.1.26100. `--file` preserved both unmarked
|
|
94
|
+
UTF-8 and UTF-16LE. The measurement also corrected the pipe documentation: for an
|
|
95
|
+
editor-saved unmarked UTF-8 file, UTF-8 `$OutputEncoding` is not enough because
|
|
96
|
+
`Get-Content` has already decoded the file through the ANSI code page. The complete pipe
|
|
97
|
+
route is `Get-Content -Encoding UTF8` plus UTF-8 `$OutputEncoding`. Evidence:
|
|
98
|
+
[PR #49](https://github.com/mirror-mind-ai/mirror/pull/49#issuecomment-6610137363).
|
|
99
|
+
|
|
92
100
|
## Conscious Exclusions
|
|
93
101
|
|
|
94
|
-
- Windows PowerShell 5.1 itself
|
|
95
|
-
|
|
96
|
-
the reporter.
|
|
102
|
+
- At publication, Windows PowerShell 5.1 itself had not been run on the maintainer's side;
|
|
103
|
+
the post-release validation above closed that measurement gap.
|
|
97
104
|
- Detecting text the ASCII pipe damaged: not possible without guessing.
|
|
98
105
|
- The hook wrappers and the MCP locator still accept a relative `MIRROR_NODE`
|
|
99
106
|
([CR192](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr192-the-hook-wrappers-and-the-mcp-locator-accept-a-relative-mirror-node.md),
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
digest: >
|
|
3
|
+
v0.39.5 is a patch release of one Change Request, CR192, from PR #47's thread with
|
|
4
|
+
Rodrigo Immaginario. The hook wrappers, the plugin's MCP entry, and `runtime diagnose`
|
|
5
|
+
now use `MIRROR_NODE` only when it is an absolute path to an executable file, the rule
|
|
6
|
+
the Pi extension has followed since v0.39.1. A relative value could make a hook run a
|
|
7
|
+
file from the project the runtime was opened in, and a value that no longer pointed at
|
|
8
|
+
Node was dropped without a word. Now neither is used, and the hooks and the MCP entry
|
|
9
|
+
name the refused value with its reason. The Windows installer's drive-letter path counts
|
|
10
|
+
as absolute, proven in CI under Git Bash and on the installer itself. No schema change,
|
|
11
|
+
no migration, and no model or prompt change.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# v0.39.5 — The Node You Named, or Why Not
|
|
15
|
+
|
|
16
|
+
**Date:** 2026-11-05
|
|
17
|
+
|
|
18
|
+
## Highlights
|
|
19
|
+
|
|
20
|
+
- **A relative `MIRROR_NODE` is never run**
|
|
21
|
+
([CR192](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr192-the-hook-wrappers-and-the-mcp-locator-accept-a-relative-mirror-node.md)).
|
|
22
|
+
A runtime starts its hooks and its MCP server from the project it was opened in, and the
|
|
23
|
+
hook wrappers and the MCP entry kept any `MIRROR_NODE` that passed `[ -x ]` there: with
|
|
24
|
+
`MIRROR_NODE=bin/node`, the project's own `bin/node` ran on every hook. Every reader now
|
|
25
|
+
follows the Pi extension's rule: an absolute path to an executable file, or nothing.
|
|
26
|
+
- **A value that is not used is named, with its reason.** A value that named no usable
|
|
27
|
+
Node used to be dropped without a word. Now the hook wrappers write
|
|
28
|
+
`MIRROR_NODE=bin/node is relative; searching the PATH and the usual places instead` to
|
|
29
|
+
`<mirror home>/hooks.log`, once a UTC day for the same value, and the MCP entry writes
|
|
30
|
+
the same message to its stderr. The reasons are the Pi extension's: `relative`,
|
|
31
|
+
`a directory`, `missing`, and `not executable`. The search then goes on through the
|
|
32
|
+
PATH and the usual places, as before.
|
|
33
|
+
- **The Windows installer's form counts as absolute.** Under Git Bash the installer's
|
|
34
|
+
`MIRROR_NODE` is a drive-letter path with backslashes, and a POSIX-only test would have
|
|
35
|
+
refused it on every Windows hook; @rodrigoimmaginario named that trap before the plan
|
|
36
|
+
was written. One shell pattern now classifies exactly as Node's `path.win32.isAbsolute`:
|
|
37
|
+
`C:\…`, `C:/…`, and `\\server\share\…` are absolute, and a drive-relative `C:node.exe`
|
|
38
|
+
is refused as `relative`.
|
|
39
|
+
- **Proven on Windows twice.** The Windows CI job runs a real wrapper under Git Bash, with
|
|
40
|
+
a Node under `Program Files\nodejs` named in its Windows form. And before this tag,
|
|
41
|
+
Rodrigo ran the installer against `main`: its `MIRROR_NODE`, under a user folder with a
|
|
42
|
+
space and accents, ran the hooks and the MCP server with no refusal line, and
|
|
43
|
+
`C:node.exe` gave exactly one.
|
|
44
|
+
- No schema change, no migration, and no model or prompt change.
|
|
45
|
+
|
|
46
|
+
## Where We Started
|
|
47
|
+
|
|
48
|
+
v0.39.1 made the Pi extension strict about `MIRROR_NODE`
|
|
49
|
+
([CR191](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr191-the-pi-extension-cannot-find-node-where-the-hook-wrappers-can.md)):
|
|
50
|
+
an absolute path to an executable file, or a warning with the reason and a search without
|
|
51
|
+
it. The rest of the family was not strict. The hook wrappers and the plugin's MCP locator
|
|
52
|
+
kept any value that passed `[ -x ]`, a test a relative path passes against the project a
|
|
53
|
+
hook was started in; a value that failed it was dropped, and whoever had set it to pin a
|
|
54
|
+
Node learned nothing. `REFERENCE.md` described one trust class for every reader, and only
|
|
55
|
+
one reader held to it. CR191's debt review left the family's rule as its own decision,
|
|
56
|
+
captured as CR192 on 2026-11-02.
|
|
57
|
+
|
|
58
|
+
On PR #47 the next day, Rodrigo Immaginario named the trap in the obvious fix: under Git
|
|
59
|
+
Bash the Windows installer's `MIRROR_NODE` is a drive-letter path, it passes `[ -x ]`
|
|
60
|
+
today, and a `/*` test for "absolute" would refuse it, so every hook on a Windows install
|
|
61
|
+
would log a refusal. He also asked that PR #53, which changed the same generator, locator,
|
|
62
|
+
and tests, merge first. It did, in v0.39.3, and the plan started from its blocks.
|
|
63
|
+
|
|
64
|
+
## What Changed
|
|
65
|
+
|
|
66
|
+
**One rule, one pattern.** For the shell readers, "absolute" is one `case` pattern,
|
|
67
|
+
`/*|\\*|[A-Za-z]:[\\/]*`, which matched `path.win32.isAbsolute` on 15 values in bash,
|
|
68
|
+
dash, ksh, `/bin/sh`, and zsh as `sh`. `scripts/generate_hook_wrappers.sh` gives it, with
|
|
69
|
+
the logging helpers and the Node search, to all three wrapper forms as shared fragments,
|
|
70
|
+
and the 13 wrappers are regenerated. The MCP locator in `ts/src/guards/claudePlugin.ts`
|
|
71
|
+
carries the same text as `ABSOLUTE_PATH_CASE`, and a test fails if the two drift. The Node
|
|
72
|
+
readers keep their platform's `path.isAbsolute`, so on Windows every reader draws the same
|
|
73
|
+
line.
|
|
74
|
+
|
|
75
|
+
**A refusal that cannot forge a line.** Line breaks are removed from a value before it is
|
|
76
|
+
logged: in review, a value with a line break in it wrote a second `hooks.log` line, as
|
|
77
|
+
`claude:stop`, that `runtime diagnose` counted. The locator prints with `printf`, because
|
|
78
|
+
dash's `echo` turns the `\n` of a Windows path into a newline, and names `$MIRROR_NODE`
|
|
79
|
+
once, because Grok pastes a set variable's value into the MCP arguments it loads.
|
|
80
|
+
|
|
81
|
+
**`runtime diagnose`.** Its Node check counts `MIRROR_NODE` only under the rule, through
|
|
82
|
+
`isExecutableFile()`, which the front door's runtime route now shares. It adds no finding
|
|
83
|
+
of its own: the hooks' refusal line reaches it as `hook_failures_recorded`, for seven
|
|
84
|
+
days.
|
|
85
|
+
|
|
86
|
+
**Tests and CI.** `mirrorNodeRule.test.ts` holds the pattern equal across the three
|
|
87
|
+
wrapper forms and the locator, runs the classification table through bash and, where
|
|
88
|
+
installed, dash, and runs a real wrapper with a Node under `Program Files/nodejs` and
|
|
89
|
+
with `C:node.exe`; the Windows job runs it under Git Bash. `hooks.test.ts` and
|
|
90
|
+
`mcpEntry.test.ts` cover each reason, a planted `bin/node` that never runs, the daily
|
|
91
|
+
rule across two fixed days, a forged line break, and a server that starts past a
|
|
92
|
+
relative value.
|
|
93
|
+
|
|
94
|
+
**Docs.** The rule is stated once, in full, in the
|
|
95
|
+
[configuration reference](../reference/configuration.md#hook-node-resolution);
|
|
96
|
+
`REFERENCE.md`'s row points there. Troubleshooting shows the refusal line and the fix, and
|
|
97
|
+
says `runtime diagnose` keeps counting old lines for seven days after the fix.
|
|
98
|
+
|
|
99
|
+
Validated by the Navigator in a scratch home: two runs of the plugin's prompt hook with
|
|
100
|
+
`MIRROR_NODE=bin/node` wrote one line,
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
2026-11-04T21:40:16Z claude:user-prompt: MIRROR_NODE=bin/node is relative; searching the PATH and the usual places instead
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
the project's `bin/node` never ran, the prompt was logged, and `runtime diagnose`
|
|
107
|
+
reported `hook_failures_recorded`. CI passed on every job, the Git Bash step included,
|
|
108
|
+
and Rodrigo's installer run, 21 of 21 on the installer's contract, was the gate before
|
|
109
|
+
the tag.
|
|
110
|
+
|
|
111
|
+
**Also in this release.** Troubleshooting's PowerShell 5.1 section, from Rodrigo's PR #49
|
|
112
|
+
run: `Get-Content` decodes an editor-saved UTF-8 file without a mark through the ANSI code
|
|
113
|
+
page before the pipe runs, so a UTF-8 `$OutputEncoding` alone does not save it. The pipe
|
|
114
|
+
route now adds `Get-Content -Encoding UTF8`, and `--file` stays the safe one.
|
|
115
|
+
|
|
116
|
+
## Conscious Exclusions
|
|
117
|
+
|
|
118
|
+
- `MIRROR_BIN` keeps its behavior: a relative value is still honored, and one that names
|
|
119
|
+
nothing is still dropped without a word.
|
|
120
|
+
[CR197](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr197-the-hook-wrappers-and-the-mcp-locator-accept-a-relative-mirror-bin.md)
|
|
121
|
+
(captured) would give it this rule, keeping accepted the forward-slash `C:/…` form a
|
|
122
|
+
Windows machine sets for the Claude Code forwarders.
|
|
123
|
+
- `runtime diagnose` does not name a refused value. It counts the hooks' line under
|
|
124
|
+
`hook_failures_recorded`, and the value and its reason are in `hooks.log`; Rodrigo
|
|
125
|
+
suggests saying it in diagnose too. A finding of its own was left out at planning.
|
|
126
|
+
- Whitespace: the Pi extension trims the value and the shell readers do not, so
|
|
127
|
+
` /opt/node` is accepted by Pi and refused as `relative` by the hooks. Nothing writes
|
|
128
|
+
such a value.
|
|
129
|
+
- Converting MSYS `/c/…` values, and rotating `hooks.log`.
|
|
130
|
+
- Where Codex and Antigravity show an MCP server's stderr is not verified; the docs say
|
|
131
|
+
only what each CLI's own help shows.
|
|
132
|
+
|
|
133
|
+
## Upgrading
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
mirror runtime update
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
If you set `MIRROR_NODE` by hand, make it the absolute path of the `node` binary: a
|
|
140
|
+
relative one is now refused, with one line a day in `hooks.log`.
|
|
141
|
+
|
|
142
|
+
## Next Horizon
|
|
143
|
+
|
|
144
|
+
CR197, which would bring `MIRROR_BIN` under this rule with its pattern; Rodrigo's
|
|
145
|
+
suggestion that `runtime diagnose` name a refused value, not yet decided; and the open
|
|
146
|
+
RS010 backlog.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
digest: >
|
|
3
|
+
v0.40.0-next.1 is the first preview of the release train: published under npm's `next`
|
|
4
|
+
dist-tag, read by no updater, for Nautilus for Mirror, which embeds this Core. It carries
|
|
5
|
+
CR200: a host can delete a Journey together with every record that belongs to it, after
|
|
6
|
+
a preview that counts what will go, what other Journeys keep with a link cleared, and
|
|
7
|
+
which extension tables lose rows. The deletion acts only on the preview the person saw,
|
|
8
|
+
in one transaction, behind a named backup verified before any write. Terminal users
|
|
9
|
+
receive it with v0.40.0, when the train leaves. No schema change, no migration, and no
|
|
10
|
+
model or prompt change.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.40.0-next.1 — A Journey Can Go, Showing What Goes With It
|
|
14
|
+
|
|
15
|
+
**Date:** 2026-11-06
|
|
16
|
+
|
|
17
|
+
**A preview, not a release users receive.** It is staged under `next`, its GitHub Release is
|
|
18
|
+
a prerelease, and `stable`, `latest`, `mirror update` and the release-notes reader all stay
|
|
19
|
+
on v0.39.5. It exists so Nautilus for Mirror can ship the change below before the train
|
|
20
|
+
leaves ([the release train](../process/versioning.md#the-release-train)).
|
|
21
|
+
|
|
22
|
+
## Highlights
|
|
23
|
+
|
|
24
|
+
- **A Journey and its records, deleted in one act**
|
|
25
|
+
([CR200](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr200-delete-a-journey-with-its-records-after-showing-what-will-go.md)).
|
|
26
|
+
`mirror-mind/desktop` gains `previewJourneyDeletion` and `deleteJourneyWithRecords`.
|
|
27
|
+
`deleteJourney` still deletes only an empty leaf.
|
|
28
|
+
- **The preview is the contract.** It counts the Journey's own records, its Conversations'
|
|
29
|
+
contents, other Journeys' records that only lose a link, and the `ext_*` rows that name
|
|
30
|
+
the Journey, by owning extension, and hashes all of it. The deletion takes that digest
|
|
31
|
+
and refuses any other.
|
|
32
|
+
- **A backup first, verified.** `backups/pre-journey-deletion-<id>-<stamp>-<random>.db`,
|
|
33
|
+
owner-only, taken under the write lock and read back as the same digest before anything
|
|
34
|
+
is deleted. A refused deletion removes it; a committed one keeps it.
|
|
35
|
+
- **One friction kept:** a Journey with child Journeys is refused, naming them.
|
|
36
|
+
- No schema change, no migration, and no model or prompt change.
|
|
37
|
+
|
|
38
|
+
## Where We Started
|
|
39
|
+
|
|
40
|
+
CV24.DS8 gave a host five Journey calls, and its `deleteJourney` refuses a Journey that
|
|
41
|
+
holds anything: conversations, memories, tasks, attachments, stories, change requests,
|
|
42
|
+
cursors. Nautilus for Mirror's Journey management (its RS028) asked for the act a person
|
|
43
|
+
means by "delete this Journey". Its Navigator decided on 2026-11-05 and 2026-11-06 that
|
|
44
|
+
everything that belongs to the Journey goes, that the confirmation shows it first, and,
|
|
45
|
+
where the Core cannot judge data it does not own, to trade refusal for transparency.
|
|
46
|
+
|
|
47
|
+
A long-lived home showed why "belongs" needed rules: 956 memories sit under a Journey other
|
|
48
|
+
than their conversation's, and 101 runtime sessions likewise. Deleting by reach would have
|
|
49
|
+
erased other Journeys' history.
|
|
50
|
+
|
|
51
|
+
## What Changed
|
|
52
|
+
|
|
53
|
+
**Four rules.** A record that belongs to the Journey goes. What belongs to a deleted
|
|
54
|
+
conversation or memory goes with it: messages, embeddings, provider call records, memory
|
|
55
|
+
access records. A record of another Journey that only points at something deleted stays,
|
|
56
|
+
with that link cleared. And an `ext_*` row goes when the table's `journey_id` or `journey`
|
|
57
|
+
column names the Journey exactly; the preview names the extension from `_ext_migrations`,
|
|
58
|
+
and a row an extension's own foreign key holds refuses the deletion as
|
|
59
|
+
`extension_rows_held`, naming the table.
|
|
60
|
+
|
|
61
|
+
**A closed inventory.** `JOURNEY_DELETION_INVENTORY` names every core table the deletion
|
|
62
|
+
touches, keeps or detaches, and a test reads the schema against it: a table that names a
|
|
63
|
+
Journey, or references a row the deletion removes, without a decision fails. Its first
|
|
64
|
+
run found `journey_mutation_receipts`, kept as the audit trail.
|
|
65
|
+
|
|
66
|
+
**Refusals.** `journey_changed` for a digest that no longer matches, `journey_has_children`,
|
|
67
|
+
`extension_rows_held`, `backup_failed`, and as before an unknown Journey, a malformed
|
|
68
|
+
request and a database that is not current. Every refusal writes nothing.
|
|
69
|
+
|
|
70
|
+
**Validated** in `journeyDeletion.test.ts` (11 tests, ten mutations each caught), in CI on
|
|
71
|
+
Ubuntu and macOS (PR #55), and end to end by Nautilus: its host drives both calls
|
|
72
|
+
against a scratch home, and its Navigator deleted Journeys in the app on 2026-11-06.
|
|
73
|
+
|
|
74
|
+
**Also in this preview.** [CR199](../project/refinement/rs010-cv22-oracle-and-port-hygiene/cr199-deliver-mirror-context-takes-three-to-seven-seconds-before-every-desktop-turn.md)
|
|
75
|
+
is captured: `deliverMirrorContext` takes three to seven seconds before every Desktop
|
|
76
|
+
turn, measured. And the release train itself (PR #56) is in
|
|
77
|
+
[versioning](../process/versioning.md#the-release-train).
|
|
78
|
+
|
|
79
|
+
## Conscious Exclusions
|
|
80
|
+
|
|
81
|
+
- No CLI command deletes a Journey with its records; a host is the only caller.
|
|
82
|
+
- No cascade through child Journeys: they are refused, by the Navigator's decision.
|
|
83
|
+
- Files on disk are the host's to decide; the Core touches only the database.
|
|
84
|
+
- An extension cannot yet take over its own cleanup; recorded for when the extension
|
|
85
|
+
mechanism exists (CV24.DS8).
|
|
86
|
+
- The test suite, run with `MIRROR_HOME` or `DB_PATH` inherited from a real home, writes
|
|
87
|
+
into that home. Found while validating this change; worth its own Change Request.
|
|
88
|
+
|
|
89
|
+
## What We Learned
|
|
90
|
+
|
|
91
|
+
A preview that is also the contract keeps both honest: the person confirms a list, the
|
|
92
|
+
digest makes the deletion that list and nothing more, and a home that changed in between
|
|
93
|
+
is told so instead of deleted differently.
|
|
94
|
+
|
|
95
|
+
## Upgrading
|
|
96
|
+
|
|
97
|
+
Nothing to do in the terminal: this preview is not offered by `mirror update`. A host that
|
|
98
|
+
embeds the Core pins `mirror-mind@0.40.0-next.1` from the registry.
|
|
99
|
+
|
|
100
|
+
## Next Horizon
|
|
101
|
+
|
|
102
|
+
v0.40.0 leaves with the next train, carrying this change to every install, with whatever
|
|
103
|
+
else merges before it.
|
package/lib/desktop.js
CHANGED
|
@@ -22,6 +22,7 @@ const migration = await import("../ts/src/db/migrateHome.ts");
|
|
|
22
22
|
const context = await import("../ts/src/mirror/deliverContext.ts");
|
|
23
23
|
const learning = await import("../ts/src/conversation/learnFromConversations.ts");
|
|
24
24
|
const journeys = await import("../ts/src/journey/journeyCalls.ts");
|
|
25
|
+
const journeyDeletion = await import("../ts/src/journey/journeyDeletion.ts");
|
|
25
26
|
|
|
26
27
|
export const DESKTOP_API_VERSION = 1;
|
|
27
28
|
export const inspectMigrationState = migrationReport.inspectMigrationState;
|
|
@@ -70,3 +71,10 @@ export const setJourneyProjectPath = journeys.setJourneyProjectPath;
|
|
|
70
71
|
export const moveJourney = journeys.moveJourney;
|
|
71
72
|
export const deleteJourney = journeys.deleteJourney;
|
|
72
73
|
export const JourneyCallRejectedError = journeys.JourneyCallRejectedError;
|
|
74
|
+
|
|
75
|
+
// Delete a Journey with its records, after showing what will go: the preview
|
|
76
|
+
// counts every record by rule and answers a digest; the deletion takes that
|
|
77
|
+
// digest back, refuses a home that no longer matches it, and runs behind a
|
|
78
|
+
// retained, verified backup it names. Rejections are `JourneyCallRejectedError`s.
|
|
79
|
+
export const previewJourneyDeletion = journeyDeletion.previewJourneyDeletion;
|
|
80
|
+
export const deleteJourneyWithRecords = journeyDeletion.deleteJourneyWithRecords;
|
package/package.json
CHANGED