enclave-link 0.2.5 → 0.2.6

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.
@@ -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-PB2UBW7U.js";
5
+ } from "./chunk-RVHMWDDN.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-LJPUESU6.js");
75
+ const { serve } = await import("./mcp-LCCRAF42.js");
76
76
  await serve(vault);
77
77
  } else {
78
78
  console.error(usage);
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  Store,
3
3
  openVault,
4
4
  vault
5
- } from "./chunk-PB2UBW7U.js";
5
+ } from "./chunk-RVHMWDDN.js";
6
6
  import "./chunk-7QIF4PCL.js";
7
7
  export {
8
8
  Store,
@@ -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.5",
16917
+ version: "0.2.6",
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enclave-link",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Your agent asks for a password by one-time link, not in chat, and uses it without seeing it.",
5
5
  "license": "MIT",
6
6
  "bin": {