openfused 0.3.11 → 0.3.12
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/cli.js +1 -1
- package/dist/mcp.js +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +2 -2
- package/dist/store.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as registry from "./registry.js";
|
|
|
8
8
|
import { fingerprint } from "./crypto.js";
|
|
9
9
|
import { resolve, join } from "node:path";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
11
|
-
const VERSION = "0.3.
|
|
11
|
+
const VERSION = "0.3.12";
|
|
12
12
|
const program = new Command();
|
|
13
13
|
program
|
|
14
14
|
.name("openfuse")
|
package/dist/mcp.js
CHANGED
|
@@ -23,7 +23,7 @@ const storeDir = process.env.OPENFUSE_DIR || process.argv[3] || ".";
|
|
|
23
23
|
const store = new ContextStore(resolve(storeDir));
|
|
24
24
|
const server = new McpServer({
|
|
25
25
|
name: "openfuse",
|
|
26
|
-
version: "0.3.
|
|
26
|
+
version: "0.3.12",
|
|
27
27
|
});
|
|
28
28
|
// --- Context ---
|
|
29
29
|
server.tool("context_read", "Read the agent's CONTEXT.md (working memory)", async () => {
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContextStore } from "./store.js";
|
|
2
|
-
export declare const DEFAULT_REGISTRY = "https://
|
|
2
|
+
export declare const DEFAULT_REGISTRY = "https://registry.openfused.dev";
|
|
3
3
|
export interface Manifest {
|
|
4
4
|
name: string;
|
|
5
5
|
endpoint: string;
|
package/dist/registry.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
// This is TOFU (Trust On First Use) done right: the registry distributes keys,
|
|
8
8
|
// but never asserts trust. Trust is a local decision.
|
|
9
9
|
import { signMessage, fingerprint } from "./crypto.js";
|
|
10
|
-
//
|
|
11
|
-
export const DEFAULT_REGISTRY = "https://
|
|
10
|
+
// Registry API lives on .dev (product layer). DNS TXT records on .net (protocol layer).
|
|
11
|
+
export const DEFAULT_REGISTRY = "https://registry.openfused.dev";
|
|
12
12
|
export function resolveRegistry(flag) {
|
|
13
13
|
return flag || process.env.OPENFUSE_REGISTRY || DEFAULT_REGISTRY;
|
|
14
14
|
}
|
package/dist/store.js
CHANGED
|
@@ -172,10 +172,10 @@ export class ContextStore {
|
|
|
172
172
|
const entry = config.keyring.find((e) => e.name === peerId || e.address.startsWith(`${peerId}@`));
|
|
173
173
|
let signed;
|
|
174
174
|
if (entry?.encryptionKey) {
|
|
175
|
-
signed = await signAndEncrypt(this.root, config.
|
|
175
|
+
signed = await signAndEncrypt(this.root, config.name, message, entry.encryptionKey);
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
|
-
signed = await signMessage(this.root, config.
|
|
178
|
+
signed = await signMessage(this.root, config.name, message);
|
|
179
179
|
}
|
|
180
180
|
// Envelope filename encodes routing metadata so sync can match outbox files to peers
|
|
181
181
|
// without parsing JSON. Colons/dots replaced to stay filesystem-safe across OS.
|