@agentvault/claude-bridge 0.7.3 → 0.7.4
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 +26 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -64730,6 +64730,24 @@ var init_channel = __esm2({
|
|
|
64730
64730
|
_pendingKpBundles = [];
|
|
64731
64731
|
/** Pool target: keep this many unconsumed KeyPackages published; backend caps to match. */
|
|
64732
64732
|
static _KP_POOL_TARGET = 10;
|
|
64733
|
+
/**
|
|
64734
|
+
* Local retention bound for `_pendingKpBundles` (#363). Deliberately ABOVE
|
|
64735
|
+
* `_KP_POOL_TARGET`, because the two counts are in DIFFERENT UNITS: the backend
|
|
64736
|
+
* keeps up to `_KP_POOL_TARGET` **unconsumed** KeyPackages, while this array
|
|
64737
|
+
* holds every bundle published since the last join — consumed ones are removed
|
|
64738
|
+
* only by `_removeKpFromPool` on a successful join.
|
|
64739
|
+
*
|
|
64740
|
+
* Capping local retention AT the backend's target therefore evicts bundles the
|
|
64741
|
+
* backend can still serve, and their private material cannot be rebuilt (#341:
|
|
64742
|
+
* `mls_rs_uniffi` exposes no KeyPackage repository), so any Welcome minted
|
|
64743
|
+
* against an evicted bundle is PERMANENTLY unjoinable.
|
|
64744
|
+
*
|
|
64745
|
+
* Same defect and same remedy as #511, where the web store capped 6 against a
|
|
64746
|
+
* backend pool of 10 and was raised to 12. Retaining extra bundles is cheap and
|
|
64747
|
+
* purely protective — `_handleMlsWelcome` trial-decrypts against the whole pool,
|
|
64748
|
+
* so a surplus only ever adds chances to match.
|
|
64749
|
+
*/
|
|
64750
|
+
static _KP_POOL_RETENTION = 20;
|
|
64733
64751
|
/** Reentrancy guard so concurrent pool top-ups don't double-publish past target. */
|
|
64734
64752
|
_kpPoolFilling = false;
|
|
64735
64753
|
/** Buffer for MLS commits received before Welcome (keyed by groupId, sorted by epoch). */
|
|
@@ -65393,7 +65411,9 @@ var init_channel = __esm2({
|
|
|
65393
65411
|
const pendingWsSends = [];
|
|
65394
65412
|
const sentSharedGroupIds = /* @__PURE__ */ new Set();
|
|
65395
65413
|
if (this._persisted?.mlsGroups && this._state === "ready" && this._ws) {
|
|
65414
|
+
const targetSharedGid = targetConvId ? this._sessionGroupIds?.get(targetConvId) : void 0;
|
|
65396
65415
|
for (const [gid, entry] of Object.entries(this._persisted.mlsGroups)) {
|
|
65416
|
+
if (targetConvId && gid !== targetSharedGid) continue;
|
|
65397
65417
|
if (!entry.mlsGroupId) continue;
|
|
65398
65418
|
const mlsGroup = this._mlsGroups.get(`1to1-group:${gid}`);
|
|
65399
65419
|
if (!mlsGroup?.isInitialized || Number(mlsGroup.epoch) <= 0) continue;
|
|
@@ -65594,7 +65614,7 @@ var init_channel = __esm2({
|
|
|
65594
65614
|
*/
|
|
65595
65615
|
sendActivitySpan(spanData) {
|
|
65596
65616
|
if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
|
|
65597
|
-
const pluginVersion = true ? "0.23.
|
|
65617
|
+
const pluginVersion = true ? "0.23.14" : "0.0.0-dev";
|
|
65598
65618
|
const agentName = this.config.agentName ?? "Agent";
|
|
65599
65619
|
const resource = {
|
|
65600
65620
|
"service.name": "agentvault-agent",
|
|
@@ -67333,7 +67353,7 @@ var init_channel = __esm2({
|
|
|
67333
67353
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
67334
67354
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
67335
67355
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
67336
|
-
pluginVersion: true ? "0.23.
|
|
67356
|
+
pluginVersion: true ? "0.23.14" : "0.0.0-dev"
|
|
67337
67357
|
});
|
|
67338
67358
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
67339
67359
|
}
|
|
@@ -67651,7 +67671,7 @@ var init_channel = __esm2({
|
|
|
67651
67671
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
67652
67672
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
67653
67673
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
67654
|
-
pluginVersion: true ? "0.23.
|
|
67674
|
+
pluginVersion: true ? "0.23.14" : "0.0.0-dev"
|
|
67655
67675
|
});
|
|
67656
67676
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
67657
67677
|
}
|
|
@@ -69314,7 +69334,7 @@ ${messageText}`;
|
|
|
69314
69334
|
if (!this._pendingKpBundles.some((b22) => idOf(b22) === id)) {
|
|
69315
69335
|
this._pendingKpBundles.push(kp);
|
|
69316
69336
|
}
|
|
69317
|
-
while (this._pendingKpBundles.length > _SecureChannel.
|
|
69337
|
+
while (this._pendingKpBundles.length > _SecureChannel._KP_POOL_RETENTION) {
|
|
69318
69338
|
this._pendingKpBundles.shift();
|
|
69319
69339
|
}
|
|
69320
69340
|
}
|
|
@@ -97500,7 +97520,7 @@ var init_index = __esm2({
|
|
|
97500
97520
|
init_skill_invoker();
|
|
97501
97521
|
await init_skill_telemetry();
|
|
97502
97522
|
await init_policy_enforcer();
|
|
97503
|
-
VERSION = true ? "0.23.
|
|
97523
|
+
VERSION = true ? "0.23.14" : "0.0.0-dev";
|
|
97504
97524
|
}
|
|
97505
97525
|
});
|
|
97506
97526
|
await init_index();
|
|
@@ -133764,7 +133784,7 @@ async function main() {
|
|
|
133764
133784
|
"[bridge] warning: passing the invite token on the command line is visible to other local users via 'ps'. Prefer: AV_INVITE_TOKEN=\u2026 npx @agentvault/claude-bridge"
|
|
133765
133785
|
);
|
|
133766
133786
|
}
|
|
133767
|
-
console.error(`[bridge] version: ${true ? "0.7.
|
|
133787
|
+
console.error(`[bridge] version: ${true ? "0.7.4" : "dev"}`);
|
|
133768
133788
|
console.error(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
|
|
133769
133789
|
console.error(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
|
|
133770
133790
|
if (cfg.armRoom) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentvault/claude-bridge",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "AgentVault Claude Bridge
|
|
5
|
+
"description": "AgentVault Claude Bridge \u2014 daemon for bridging a Claude agent into secure E2E-encrypted AgentVault 1:1 direct messages and rooms.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|