@agentvault/claude-bridge 0.8.9 → 0.8.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 +14 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52059,7 +52059,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
|
|
|
52059
52059
|
const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
|
|
52060
52060
|
const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
|
|
52061
52061
|
const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
|
|
52062
|
-
const
|
|
52062
|
+
const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
|
|
52063
|
+
const t22 = proposal.proposalType;
|
|
52064
|
+
return t22 !== "add" && t22 !== "psk" && t22 !== "reinit";
|
|
52065
|
+
});
|
|
52066
|
+
const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
|
|
52067
|
+
const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
|
|
52063
52068
|
return {
|
|
52064
52069
|
tree: mutatedTree,
|
|
52065
52070
|
pskSecret: updatedPskSecret,
|
|
@@ -64607,11 +64612,11 @@ var init_mls_kp_pool = __esm2({
|
|
|
64607
64612
|
}
|
|
64608
64613
|
});
|
|
64609
64614
|
function ownIdentity() {
|
|
64610
|
-
const v22 = true ? "0.23.
|
|
64615
|
+
const v22 = true ? "0.23.38" : FALLBACK;
|
|
64611
64616
|
return `${PACKAGE}@${v22}`;
|
|
64612
64617
|
}
|
|
64613
64618
|
function buildSha() {
|
|
64614
|
-
const raw = true ? "
|
|
64619
|
+
const raw = true ? "a6ce360-dirty" : "";
|
|
64615
64620
|
const cleaned = (raw ?? "").trim();
|
|
64616
64621
|
return !cleaned || cleaned === "unknown" ? null : cleaned;
|
|
64617
64622
|
}
|
|
@@ -66809,7 +66814,7 @@ var init_channel = __esm2({
|
|
|
66809
66814
|
*/
|
|
66810
66815
|
sendActivitySpan(spanData) {
|
|
66811
66816
|
if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
|
|
66812
|
-
const pluginVersion = true ? "0.23.
|
|
66817
|
+
const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
|
|
66813
66818
|
const agentName = this.config.agentName ?? "Agent";
|
|
66814
66819
|
const resource = {
|
|
66815
66820
|
"service.name": "agentvault-agent",
|
|
@@ -68747,7 +68752,7 @@ var init_channel = __esm2({
|
|
|
68747
68752
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
68748
68753
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
68749
68754
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
68750
|
-
pluginVersion: true ? "0.23.
|
|
68755
|
+
pluginVersion: true ? "0.23.38" : "0.0.0-dev"
|
|
68751
68756
|
});
|
|
68752
68757
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
68753
68758
|
}
|
|
@@ -69071,7 +69076,7 @@ var init_channel = __esm2({
|
|
|
69071
69076
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
69072
69077
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
69073
69078
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
69074
|
-
pluginVersion: true ? "0.23.
|
|
69079
|
+
pluginVersion: true ? "0.23.38" : "0.0.0-dev"
|
|
69075
69080
|
});
|
|
69076
69081
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
69077
69082
|
}
|
|
@@ -99521,7 +99526,7 @@ var init_index = __esm2({
|
|
|
99521
99526
|
await init_skill_telemetry();
|
|
99522
99527
|
await init_policy_enforcer();
|
|
99523
99528
|
init_room_protocol();
|
|
99524
|
-
VERSION = true ? "0.23.
|
|
99529
|
+
VERSION = true ? "0.23.38" : "0.0.0-dev";
|
|
99525
99530
|
}
|
|
99526
99531
|
});
|
|
99527
99532
|
await init_index();
|
|
@@ -135925,7 +135930,7 @@ async function main() {
|
|
|
135925
135930
|
"[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"
|
|
135926
135931
|
);
|
|
135927
135932
|
}
|
|
135928
|
-
logLine(`[bridge] version: ${true ? "0.8.
|
|
135933
|
+
logLine(`[bridge] version: ${true ? "0.8.11" : "dev"}`);
|
|
135929
135934
|
logLine(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
|
|
135930
135935
|
logLine(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
|
|
135931
135936
|
if (cfg.armRoom) {
|
|
@@ -135957,7 +135962,7 @@ async function main() {
|
|
|
135957
135962
|
// its default would render "@agentvault/agentvault@0.7.x" — the wrong
|
|
135958
135963
|
// package name attached to the bridge's version number, which is worse
|
|
135959
135964
|
// than either alone.
|
|
135960
|
-
clientVersion: `@agentvault/claude-bridge@${true ? "0.8.
|
|
135965
|
+
clientVersion: `@agentvault/claude-bridge@${true ? "0.8.11" : "dev"}`
|
|
135961
135966
|
});
|
|
135962
135967
|
const agentSystemPrompt = cfg.systemPrompt ?? `You are ${cfg.agentName}, an AI agent on AgentVault. You talk with your owner in 1:1 direct messages and collaborate with other agents in shared rooms. That is your identity \u2014 introduce yourself by that name and do not claim to be any other agent. To speak, call the say tool. In a 1:1 with your owner, reply to what they say. In a room you see every message \u2014 call say only when you have something worth adding, and otherwise stay silent. Keep messages concise.`;
|
|
135963
135968
|
const deviceJwt = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentvault/claude-bridge",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgentVault Claude Bridge — daemon for bridging a Claude agent into secure E2E-encrypted AgentVault 1:1 direct messages and rooms.",
|
|
6
6
|
"main": "dist/index.js",
|