@adhdev/mesh-shared 1.0.60-rc.10 → 1.0.60-rc.12
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/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/dist/ws-protocol.d.ts +47 -0
- package/package.json +1 -1
- package/src/ws-protocol.ts +63 -0
package/dist/index.mjs
CHANGED
|
@@ -988,6 +988,20 @@ function isDaemonToServerWsMsg(value) {
|
|
|
988
988
|
function isServerToDaemonWsMsg(value) {
|
|
989
989
|
return typeof value === "string" && SERVER_TO_DAEMON_WS_MSGS.includes(value);
|
|
990
990
|
}
|
|
991
|
+
function normalizeAuthOkLimits(raw) {
|
|
992
|
+
if (!raw || typeof raw !== "object") return null;
|
|
993
|
+
const src = raw;
|
|
994
|
+
const num = (value, fallback) => typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
995
|
+
return {
|
|
996
|
+
maxP2Pconnections: num(
|
|
997
|
+
src.maxP2Pconnections !== void 0 ? src.maxP2Pconnections : src.maxP2PConnections,
|
|
998
|
+
-1
|
|
999
|
+
),
|
|
1000
|
+
screenshotIntervalSeconds: num(src.screenshotIntervalSeconds, 0),
|
|
1001
|
+
dailyScreenshotMinutes: num(src.dailyScreenshotMinutes, -1),
|
|
1002
|
+
maxMachines: num(src.maxMachines, -1)
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
991
1005
|
|
|
992
1006
|
// src/interactive-prompt-constants.ts
|
|
993
1007
|
var CLAUDE_TUI_REVIEW_PAGE_NOT_FOCUSED_PREFIX = "Claude TUI review page is not focused";
|
|
@@ -1039,6 +1053,7 @@ export {
|
|
|
1039
1053
|
meshNodeIdMatches,
|
|
1040
1054
|
meshUtf8ByteLength,
|
|
1041
1055
|
meshWorkspacesEquivalent,
|
|
1056
|
+
normalizeAuthOkLimits,
|
|
1042
1057
|
normalizeBrainSlot,
|
|
1043
1058
|
normalizeDifficultyBrainMap,
|
|
1044
1059
|
normalizeGitStatus,
|