summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-common/src')
-rw-r--r--packages/meshbay-common/src/meshbay_common/adminop.py7
-rw-r--r--packages/meshbay-common/src/meshbay_common/protocol.py8
2 files changed, 15 insertions, 0 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/adminop.py b/packages/meshbay-common/src/meshbay_common/adminop.py
index ad109b2..c48f011 100644
--- a/packages/meshbay-common/src/meshbay_common/adminop.py
+++ b/packages/meshbay-common/src/meshbay_common/adminop.py
@@ -54,6 +54,13 @@ OP_MEMBER_UPLOAD = "member_upload"
# anything about key material, but an unsigned toggle would let any member
# turn a disabled one back on.
OP_APPS_ENABLED = "apps_enabled"
+# How often the indexer's reconciliation backstop runs, and how long it waits
+# after a file's last write before hashing it. Signed like the rest for
+# consistency with every other operator-only setting here, even though the
+# worst a wrong value costs is index staleness or extra disk churn — not a
+# security property in itself, but the pattern (every operator setting is
+# signed) is what keeps the authorization model simple to reason about.
+OP_SET_SCAN_SETTINGS = "set_scan_settings"
OP_ROOT_ADD = "root_add"
OP_ROOT_REMOVE = "root_remove"
OP_GROUP_ATTACH = "group_attach"
diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py
index 53e5085..e1bfb8e 100644
--- a/packages/meshbay-common/src/meshbay_common/protocol.py
+++ b/packages/meshbay-common/src/meshbay_common/protocol.py
@@ -24,6 +24,12 @@ class MNP:
HANDSHAKE_ACK = "handshake_ack"
INDEX_SYNC = "index_sync" # full Mesh Group Index
INDEX_DELTA = "index_delta" # incremental update
+ # Node -> already-connected members: "the operator's node is scanning
+ # right now, N/M bytes done". Never the entries themselves (that is
+ # INDEX_SYNC/INDEX_DELTA's job) — just enough for a presence dot to
+ # animate. Pushed periodically while scanning, and once more on the
+ # transition back to idle, so the indicator is guaranteed to turn off.
+ INDEX_PROGRESS = "index_progress"
FILE_REQUEST = "file_req" # request chunk(s)
FILE_CHUNK = "file_chunk" # encrypted chunk response
STREAM_SEGMENT = "stream_seg" # HLS/DASH segment
@@ -82,6 +88,8 @@ class MNP:
MEMBER_UPLOAD_ACK = "member_upload_ack"
APPS_ENABLED = "apps_enabled" # operator → node: which group apps to show
APPS_ENABLED_ACK = "apps_enabled_ack"
+ SET_SCAN_SETTINGS = "set_scan_settings" # operator → node: reconcile/debounce timing
+ SET_SCAN_SETTINGS_ACK = "set_scan_settings_ack"
# Device linking. A new device files a request bound to a code it displays;
# an already-pinned device of the same account approves it. Neither the hub
# nor the node can produce the countersignature.