@adhdev/mesh-shared 1.0.60-rc.1 → 1.0.60-rc.11
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.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(index_exports, {
|
|
|
66
66
|
meshNodeIdMatches: () => meshNodeIdMatches,
|
|
67
67
|
meshUtf8ByteLength: () => meshUtf8ByteLength,
|
|
68
68
|
meshWorkspacesEquivalent: () => meshWorkspacesEquivalent,
|
|
69
|
+
normalizeAuthOkLimits: () => normalizeAuthOkLimits,
|
|
69
70
|
normalizeBrainSlot: () => normalizeBrainSlot,
|
|
70
71
|
normalizeDifficultyBrainMap: () => normalizeDifficultyBrainMap,
|
|
71
72
|
normalizeGitStatus: () => normalizeGitStatus,
|
|
@@ -1086,6 +1087,20 @@ function isDaemonToServerWsMsg(value) {
|
|
|
1086
1087
|
function isServerToDaemonWsMsg(value) {
|
|
1087
1088
|
return typeof value === "string" && SERVER_TO_DAEMON_WS_MSGS.includes(value);
|
|
1088
1089
|
}
|
|
1090
|
+
function normalizeAuthOkLimits(raw) {
|
|
1091
|
+
if (!raw || typeof raw !== "object") return null;
|
|
1092
|
+
const src = raw;
|
|
1093
|
+
const num = (value, fallback) => typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
1094
|
+
return {
|
|
1095
|
+
maxP2Pconnections: num(
|
|
1096
|
+
src.maxP2Pconnections !== void 0 ? src.maxP2Pconnections : src.maxP2PConnections,
|
|
1097
|
+
-1
|
|
1098
|
+
),
|
|
1099
|
+
screenshotIntervalSeconds: num(src.screenshotIntervalSeconds, 0),
|
|
1100
|
+
dailyScreenshotMinutes: num(src.dailyScreenshotMinutes, -1),
|
|
1101
|
+
maxMachines: num(src.maxMachines, -1)
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1089
1104
|
|
|
1090
1105
|
// src/interactive-prompt-constants.ts
|
|
1091
1106
|
var CLAUDE_TUI_REVIEW_PAGE_NOT_FOCUSED_PREFIX = "Claude TUI review page is not focused";
|
|
@@ -1138,6 +1153,7 @@ var CLAUDE_TUI_REVIEW_UNCONFIRMED_PREFIX = "Claude TUI answer delivered but not
|
|
|
1138
1153
|
meshNodeIdMatches,
|
|
1139
1154
|
meshUtf8ByteLength,
|
|
1140
1155
|
meshWorkspacesEquivalent,
|
|
1156
|
+
normalizeAuthOkLimits,
|
|
1141
1157
|
normalizeBrainSlot,
|
|
1142
1158
|
normalizeDifficultyBrainMap,
|
|
1143
1159
|
normalizeGitStatus,
|