aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-12 00:17:32 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-12 00:17:32 +0200
commit14911aae21ec4975f7a805b91e3c4867cb41974b (patch)
tree8c00230a88053905fd77938f3a9539efeb4c3094 /packages/meshbay-client
parentf6f107e02c7a4aa7326c9a82310a239327d81ed6 (diff)
downloadmeshbay-14911aae21ec4975f7a805b91e3c4867cb41974b.tar.gz
feat: let the operator pause and resume a root's indexing (MNP 6.2)
A whole-root walk now checks its root before every file: removed or ejected, it stops instead of reading the drive to the end; paused, it finishes from the hash cache alone. A paused root is not watched, not swept by reconcile and survives a restart (roster), its indexed files stay served. Resume runs the reconcile sweep over the root, so entries and their enrichment are kept. Signed root_pause / root_resume over MNP, loopback routes, CLI `root pause|resume`, a pause button on the indexing dock and pause/resume in the roots table of Group settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-client')
-rw-r--r--packages/meshbay-client/src/main.js2
-rw-r--r--packages/meshbay-client/src/transcripts.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-client/src/main.js b/packages/meshbay-client/src/main.js
index 1af4386..33388e8 100644
--- a/packages/meshbay-client/src/main.js
+++ b/packages/meshbay-client/src/main.js
@@ -2396,6 +2396,8 @@ Its log: ${nodeLogHint()}`);
updateRoot: (a) => ['PATCH', root(a), anObject(a.updates)],
ejectRoot: (a) => ['PUT', `${root(a)}/eject`],
plugRoot: (a) => ['PUT', `${root(a)}/plug`],
+ pauseRoot: (a) => ['PUT', `${root(a)}/pause`],
+ resumeRoot: (a) => ['PUT', `${root(a)}/resume`],
removeRoot: (a) => ['DELETE', root(a)],
initGek: (a) => ['POST', `${group(a)}/gek${a.rotate ? '?rotate=true' : ''}`],
pairOperator: () => ['POST', '/api/operator/pair'],
diff --git a/packages/meshbay-client/src/transcripts.js b/packages/meshbay-client/src/transcripts.js
index ffba3bf..8119d71 100644
--- a/packages/meshbay-client/src/transcripts.js
+++ b/packages/meshbay-client/src/transcripts.js
@@ -42,7 +42,7 @@ const ADMIN_OPS = new Set([
'invite_cancel', 'member_revoke', 'apps_enabled', 'set_scan_settings',
'tmdb_config', 'tmdb_enabled', 'tmdb_override', 'tmdb_rematch',
'musicbrainz_enabled', 'root_remove', 'root_eject', 'root_plug',
- 'app_directories', 'chat_directory', 'chat_link_preview', 'search_listed',
+ 'root_pause', 'root_resume', 'app_directories', 'chat_directory', 'chat_link_preview', 'search_listed',
'chat_epoch', 'chat_purge',
]);