enclave-link 0.2.5 → 0.2.7
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.
|
@@ -11858,7 +11858,7 @@ function openVault({
|
|
|
11858
11858
|
const item = toItem(entry.content);
|
|
11859
11859
|
const previous = before[entry.id];
|
|
11860
11860
|
const existing = await store.get(previous?.name ?? target.name) ?? {};
|
|
11861
|
-
const proton = new Set(previous
|
|
11861
|
+
const proton = new Set(previous ? previous.fields : saved ? Object.keys(existing) : []);
|
|
11862
11862
|
const added = Object.entries(existing).filter(([field]) => !proton.has(field) && !(field in item));
|
|
11863
11863
|
imported.set(target.name, { ...Object.fromEntries(added), ...item });
|
|
11864
11864
|
target.fields = Object.keys(item);
|
|
@@ -11876,6 +11876,10 @@ function openVault({
|
|
|
11876
11876
|
async function passkey(name, field = "passkey", timeout = 3e5) {
|
|
11877
11877
|
await read(name, field);
|
|
11878
11878
|
await mkdir2(armed, { recursive: true, mode: 448 });
|
|
11879
|
+
for (const file of (await readdir2(armed)).filter((file2) => file2.endsWith(".json"))) {
|
|
11880
|
+
const arm = JSON.parse(await readFile2(join2(armed, file), "utf8").catch(() => "{}"));
|
|
11881
|
+
if (arm.name === name && arm.field === field) await rm2(join2(armed, file), { force: true });
|
|
11882
|
+
}
|
|
11879
11883
|
await writeFile2(join2(armed, `${randomUUID2()}.json`), JSON.stringify({ name, field, until: Date.now() + timeout }), {
|
|
11880
11884
|
mode: 384
|
|
11881
11885
|
});
|
package/dist/enclave.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
signRequest,
|
|
4
4
|
vault
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KET6VDXZ.js";
|
|
6
6
|
import "./chunk-7QIF4PCL.js";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
@@ -72,7 +72,7 @@ try {
|
|
|
72
72
|
} else if (command === "rm" && name) {
|
|
73
73
|
await vault.remove(name);
|
|
74
74
|
} else if (command === "mcp") {
|
|
75
|
-
const { serve } = await import("./mcp-
|
|
75
|
+
const { serve } = await import("./mcp-EL433IFY.js");
|
|
76
76
|
await serve(vault);
|
|
77
77
|
} else {
|
|
78
78
|
console.error(usage);
|
package/dist/index.js
CHANGED
|
@@ -16914,7 +16914,7 @@ var StdioServerTransport = class {
|
|
|
16914
16914
|
// package.json
|
|
16915
16915
|
var package_default = {
|
|
16916
16916
|
name: "enclave-link",
|
|
16917
|
-
version: "0.2.
|
|
16917
|
+
version: "0.2.7",
|
|
16918
16918
|
description: "Your agent asks for a password by one-time link, not in chat, and uses it without seeing it.",
|
|
16919
16919
|
license: "MIT",
|
|
16920
16920
|
bin: {
|