openfused 0.3.17 → 0.3.18

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.
Files changed (2) hide show
  1. package/dist/store.js +3 -3
  2. package/package.json +1 -1
package/dist/store.js CHANGED
@@ -193,10 +193,10 @@ export class ContextStore {
193
193
  signed = await signMessage(this.root, config.name, message);
194
194
  }
195
195
  // Envelope filename includes short fingerprint to disambiguate name collisions.
196
- // Two agents named "carlos" with different keys get different filenames.
197
- const shortFp = entry ? entry.fingerprint.replace(/:/g, "").slice(0, 8) : "unknown";
196
+ // If recipient isn't in keyring, omit fingerprint keeps filenames matchable.
197
+ const shortFp = entry ? `-${entry.fingerprint.replace(/:/g, "").slice(0, 8)}` : "";
198
198
  const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
199
- const filename = `${timestamp}_from-${config.name}_to-${peerId}-${shortFp}.json`;
199
+ const filename = `${timestamp}_from-${config.name}_to-${peerId}${shortFp}.json`;
200
200
  await writeFile(join(this.root, "outbox", filename), serializeSignedMessage(signed));
201
201
  return filename;
202
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfused",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "The file protocol for AI agent context. Encrypted, signed, peer-to-peer.",
5
5
  "license": "MIT",
6
6
  "type": "module",