@agentvault/muse-bridge 0.1.12 → 0.1.13
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 +10 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6149,10 +6149,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
|
|
|
6149
6149
|
const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
|
|
6150
6150
|
const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
|
|
6151
6151
|
const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
|
|
6152
|
-
const
|
|
6152
|
+
const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
|
|
6153
6153
|
const t2 = proposal.proposalType;
|
|
6154
6154
|
return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
|
|
6155
6155
|
});
|
|
6156
|
+
const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
|
|
6157
|
+
const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
|
|
6156
6158
|
return {
|
|
6157
6159
|
tree: mutatedTree,
|
|
6158
6160
|
pskSecret: updatedPskSecret,
|
|
@@ -11463,11 +11465,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
|
|
|
11463
11465
|
return null;
|
|
11464
11466
|
}
|
|
11465
11467
|
function ownIdentity() {
|
|
11466
|
-
const v2 = true ? "0.23.
|
|
11468
|
+
const v2 = true ? "0.23.38" : FALLBACK;
|
|
11467
11469
|
return `${PACKAGE}@${v2}`;
|
|
11468
11470
|
}
|
|
11469
11471
|
function buildSha() {
|
|
11470
|
-
const raw = true ? "
|
|
11472
|
+
const raw = true ? "a6ce360-dirty" : "";
|
|
11471
11473
|
const cleaned = (raw ?? "").trim();
|
|
11472
11474
|
return !cleaned || cleaned === "unknown" ? null : cleaned;
|
|
11473
11475
|
}
|
|
@@ -70165,7 +70167,7 @@ var init_dist = __esm({
|
|
|
70165
70167
|
*/
|
|
70166
70168
|
sendActivitySpan(spanData) {
|
|
70167
70169
|
if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
|
|
70168
|
-
const pluginVersion = true ? "0.23.
|
|
70170
|
+
const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
|
|
70169
70171
|
const agentName = this.config.agentName ?? "Agent";
|
|
70170
70172
|
const resource = {
|
|
70171
70173
|
"service.name": "agentvault-agent",
|
|
@@ -72103,7 +72105,7 @@ var init_dist = __esm({
|
|
|
72103
72105
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
72104
72106
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
72105
72107
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
72106
|
-
pluginVersion: true ? "0.23.
|
|
72108
|
+
pluginVersion: true ? "0.23.38" : "0.0.0-dev"
|
|
72107
72109
|
});
|
|
72108
72110
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
72109
72111
|
}
|
|
@@ -72427,7 +72429,7 @@ var init_dist = __esm({
|
|
|
72427
72429
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
72428
72430
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
72429
72431
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
72430
|
-
pluginVersion: true ? "0.23.
|
|
72432
|
+
pluginVersion: true ? "0.23.38" : "0.0.0-dev"
|
|
72431
72433
|
});
|
|
72432
72434
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
72433
72435
|
}
|
|
@@ -97830,7 +97832,7 @@ data:
|
|
|
97830
97832
|
await init_skill_telemetry();
|
|
97831
97833
|
await init_policy_enforcer();
|
|
97832
97834
|
init_room_protocol();
|
|
97833
|
-
VERSION = true ? "0.23.
|
|
97835
|
+
VERSION = true ? "0.23.38" : "0.0.0-dev";
|
|
97834
97836
|
}
|
|
97835
97837
|
});
|
|
97836
97838
|
await init_index();
|
|
@@ -99206,7 +99208,7 @@ function mkdir700(path2) {
|
|
|
99206
99208
|
chmodSync5(path2, 448);
|
|
99207
99209
|
}
|
|
99208
99210
|
function packageVersion() {
|
|
99209
|
-
return true ? "0.1.
|
|
99211
|
+
return true ? "0.1.13" : void 0;
|
|
99210
99212
|
}
|
|
99211
99213
|
function helpText(version2) {
|
|
99212
99214
|
return [
|
package/package.json
CHANGED